Exemple #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            ChoseCustomer cs = new ChoseCustomer(ID_Bill);

            this.Hide();
            cs.ShowDialog();
            FormFoodChoices f = new FormFoodChoices(EmployeeID);

            f.ShowDialog();
            this.Close();
        }
Exemple #2
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            acc.Username = txtUsername.Text;
            acc.Password = txtPassword.Text;
            acc.IsAdmin  = rbAdmin.Checked;

            if (acc.IsUser(ref EmployeeID))
            {
                if (rbAdmin.Checked)
                {
                    FormManage f1 = new FormManage();
                    this.Hide();
                    f1.ShowDialog();
                }
                if (rbEmployee.Checked)
                {
                    FormFoodChoices f1 = new FormFoodChoices(EmployeeID);
                    this.Hide();
                    f1.ShowDialog();
                }
            }
        }