コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            decimal sum = int.Parse(textBox1.Text);

            Bancomat.Put_money(sum);
            textBox1.Text = Bancomat.Show_current_amount();
        }
コード例 #2
0
        private void Enter_Click(object sender, EventArgs e)
        {
            var rez = Convert.ToString(Address.Text);

            Address.Clear();
            Bancomat.Address = rez;
            Address.Text     = Bancomat.Show_address();
        }
コード例 #3
0
        private void Withraw_Click(object sender, EventArgs e)
        {
            //  info_display.Text = $"Current amount : {Bancomat.Show_current_amount()}";
            sum_withraw = int.Parse(INPUT_AMOUNT.Text);

            var current_amount = Bancomat.Withdraw(sum_withraw);

            info_display.Text = current_amount;
        }