Beispiel #1
0
        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");
        }
Beispiel #2
0
 private void Ones_minus(object sender, RoutedEventArgs e)
 {
     if (Ones - 1 < 0)
     {
         return;
     }
     Ones--;
     OnesText.Text = Ones.ToString();
     TotalBox.Text = Total.ToString("C");
 }
Beispiel #3
0
 private void Ones_add(object sender, RoutedEventArgs e)
 {
     Ones++;
     OnesText.Text = Ones.ToString();
     TotalBox.Text = Total.ToString("C");
 }