Esempio n. 1
0
 private void putCashButton_Click(object sender, EventArgs e)
 {
     var putCashForm = new PutCashForm(_cashMachine);
     if (putCashForm.ShowDialog(this) != DialogResult.OK)
     {
         return;
     }
     sumTextBox.Text = _cashMachine.TotalCountOfMoney.ToString();
 }
Esempio n. 2
0
        private void putCashButton_Click(object sender, EventArgs e)
        {
            var putCashForm = new PutCashForm(_cashMachine);

            if (putCashForm.ShowDialog(this) != DialogResult.OK)
            {
                return;
            }
            sumTextBox.Text = _cashMachine.TotalCountOfMoney.ToString();
        }