Complete MP4
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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
|
||||
//
|
||||
|
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user