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