public void Clear_Order() { Pennies = 0; PenniesText.Text = Pennies.ToString(); Nickles = 0; NicklesText.Text = Nickles.ToString(); Dimes = 0; DimesText.Text = Dimes.ToString(); Quarters = 0; QuartersText.Text = Quarters.ToString(); HalfDollars = 0; HalfDollarsText.Text = HalfDollars.ToString(); Dollars = 0; DollarsText.Text = Dollars.ToString(); Ones = 0; OnesText.Text = Ones.ToString(); Twos = 0; TwosText.Text = Twos.ToString(); Fives = 0; FivesText.Text = Fives.ToString(); Tens = 0; TensText.Text = Tens.ToString(); Twenties = 0; TwentiesText.Text = Twenties.ToString(); Fifties = 0; FiftiesText.Text = Fifties.ToString(); Hundreds = 0; HundredsText.Text = Hundreds.ToString(); TotalBox.Text = 0.00.ToString("C"); }
private void Hundreds_minus(object sender, RoutedEventArgs e) { if (Hundreds - 1 < 0) { return; } Hundreds--; HundredsText.Text = Hundreds.ToString(); TotalBox.Text = Total.ToString("C"); }
private void Hundreds_add(object sender, RoutedEventArgs e) { Hundreds++; HundredsText.Text = Hundreds.ToString(); TotalBox.Text = Total.ToString("C"); }