Пример #1
0
 private void getCashButton_Click(object sender, EventArgs e)
 {
     var getCashForm = new GetCashForm(_cashMachine);
     if (getCashForm.ShowDialog(this) != DialogResult.OK)
     {
         return;
     }
     sumTextBox.Text = _cashMachine.TotalCountOfMoney.ToString();
 }
Пример #2
0
        private void getCashButton_Click(object sender, EventArgs e)
        {
            var getCashForm = new GetCashForm(_cashMachine);

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