Esempio n. 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");
        }
Esempio n. 2
0
 private void Fives_minus(object sender, RoutedEventArgs e)
 {
     if (Fives - 1 < 0)
     {
         return;
     }
     Fives--;
     FivesText.Text = Fives.ToString();
     TotalBox.Text  = Total.ToString("C");
 }
Esempio n. 3
0
 private void Fives_add(object sender, RoutedEventArgs e)
 {
     Fives++;
     FivesText.Text = Fives.ToString();
     TotalBox.Text  = Total.ToString("C");
 }