Exemple #1
0
        private void exitMenu_click(object sender, EventArgs e)
        {
            if (currentBalance > 0)
            {
                WithdrawMenu wm = new WithdrawMenu(this);

                MessageBox.Show("You must withdraw before closing!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                wm.Show();
            }
            else
            {
                this.Close();
            }
        }
Exemple #2
0
        private void signOutToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            if (currentBalance > 0)
            {
                WithdrawMenu wm = new WithdrawMenu(this);
                MessageBox.Show("You must withdraw before closing!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Hand);

                wm.Show();
            }
            else
            {
                LoginWindow lw = new LoginWindow();

                this.Hide();
                lw.FormClosed += Lw_FormClosed;

                lw.Show();
            }
        }
Exemple #3
0
        private void withdrawToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            WithdrawMenu wm = new WithdrawMenu(this);

            wm.Show();
        }