示例#1
0
        private void CASHIER_Click(object sender, EventArgs e)
        {
            LoginCashier cashlog = new LoginCashier();

            cashlog.Show();
            //this.Dispose();
        }
示例#2
0
        //method to go back

        private void BACK_BOX_Click_1(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Are you sure you want to logout ?", "Admin",
                                                        MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dialogResult == DialogResult.Yes)
            {
                LoginCashier lc = new LoginCashier();
                this.Hide();
                lc.Show();
            }
        }