Complete MP4

This commit is contained in:
2022-11-17 21:59:26 -06:00
parent 2be3b984a3
commit fcd09d2dc3
1041 changed files with 35 additions and 2540 deletions

View File

@@ -318,6 +318,7 @@
this.clearButton.TabIndex = 6;
this.clearButton.Text = "Clear";
this.clearButton.UseVisualStyleBackColor = true;
this.clearButton.Click += new System.EventHandler(this.clearButton_Click);
//
// exitButton
//
@@ -327,6 +328,7 @@
this.exitButton.TabIndex = 7;
this.exitButton.Text = "Exit";
this.exitButton.UseVisualStyleBackColor = true;
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
//
// Form1
//

View File

@@ -62,8 +62,7 @@ namespace JoesAutomotive_CalebFontenot
}
private decimal TaxCharges()
{
decimal total = 0m;
total = MiscCharges(total);
decimal.TryParse(partsInputTextBox.Text, out decimal total);
decimal tax = total * 0.06m;
return tax;
}
@@ -82,8 +81,34 @@ namespace JoesAutomotive_CalebFontenot
// Set textboxes
servicesAndLaborTextBox.Text = total.ToString("c");
totalFeesTextBox.Text = (total + tax + outputOtherCharges).ToString("c");
totalFeesTextBox.Text = (total + tax).ToString("c");
taxTextBox.Text = tax.ToString("c");
partsTextBox.Text = partsInputTextBox.Text;
}
private void exitButton_Click(object sender, EventArgs e)
{
Close();
}
private void clearButton_Click(object sender, EventArgs e)
{
// Clear EVERYTHING
servicesAndLaborTextBox.Text = "";
partsTextBox.Text = "";
partsInputTextBox.Text = "";
taxTextBox.Text = "";
totalFeesTextBox.Text = "";
laborInputTextBox.Text = "";
// Now for the checkboxes.
oilChangeCheckBox.Checked = false;
lubeJobCheckBox.Checked = false;
radiatorFlushCheckBox.Checked = false;
transmissionFlushCheckBox.Checked = false;
inspectionCheckBox.Checked = false;
replaceMufflerCheckBox.Checked = false;
tireRotationCheckBox.Checked = false;
}
}