Beispiel #1
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin();

            f.loginAccount = LoginAccount;
            f.ShowDialog();
        }
Beispiel #2
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin admin = new fAdmin();

            admin.eventInsertFood += Admin_eventInsertFood;
            admin.eventDeleteFood += Admin_eventDeleteFood;
            admin.eventUpdateFood += Admin_eventUpdateFood;
            admin.ShowDialog();
        }
Beispiel #3
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin();

            f.InsertFood += F_InsertFood;
            f.UpdateFood += F_UpdateFood;
            f.DeleteFood += F_DeleteFood;
            f.ShowDialog();
        }
Beispiel #4
0
        private void btnAdmin_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin();

            f.InsertDrink += f_InsertDrink;
            f.DeleteDrink += f_DeleteDrink;
            f.UpdateDrink += f_UpdateDrink;
            this.Hide();
            f.ShowDialog();
        }
        private void AdminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin
            {
                loginAccount = Accountlogin
            };

            this.Hide();
            f.ShowDialog();
        }
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Account login = AccountDAO.Instance.GetAccountByUserName(LoginAccount.UserName);
            fAdmin  f     = new fAdmin(login);

            f.loginAccount = LoginAccount;
            f.ShowDialog();
            this.Show();
        }
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin fAd = new fAdmin();

            fAd.loginAccount = LoginAccount;
            fAd.InsertFood  += FAd_InsertFood;
            fAd.UpdateFood  += FAd_UpdateFood;
            fAd.DeleteFood  += FAd_DeleteFood;
            fAd.ShowDialog();
        }
Beispiel #8
0
        private void AdminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin();

            f.loginAccount = LoginAccount;
            f.InsertFood  += f_InsertFood;
            f.DeleteFood  += f_DeleteFood;
            f.UpdateFood  += f_UpdateFood;
            f.ShowDialog();
        }
Beispiel #9
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin fAdmin = new fAdmin();

            Hide();
            fAdmin.InsertFood += fAdmin_InsertFood;
            fAdmin.UpdateFood += fAdmin_UpdateFood;
            fAdmin.DeleteFood += fAdmin_DeleteFood;
            fAdmin.ShowDialog();
            Show();
        }
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin admin = new fAdmin();

            admin.InsertFood += admin_inserFood;
            admin.UpdateFood += admin_updateFood;
            admin.DeleteFood += admin_deleteFood;

            admin.ShowDialog();
            setDefault();
        }
        private void btnAdmin_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin(LoginAccount);

            f.ShowDialog();

            flpTable.Controls.Clear();
            LoadTable();
            lbInfoUser.Text = UserAccount.Instance.GetDisplayNameByID(loginAccount.UserName);
            picUser.Image   = UserAccount.Instance.GetImageByName(loginAccount.UserName);
        }
        private void menuAdmin_Click(object sender, EventArgs e)
        {
            if (listForm.Count != 0)
            {
                listForm[listForm.Count - 1].Close();
                listForm.RemoveAt(listForm.Count - 1);
            }
            fAdmin f = new fAdmin();

            f.MdiParent = this;
            f.Show();
        }
Beispiel #13
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin(loginAccount);

            f.InsertFood         += F_InsertFood;
            f.UpdateFood         += F_UpdateFood;
            f.DeleteFood         += F_DeleteFood;
            f.InsertFoodCategory += F_InsertFoodCategory;
            f.UpdateFoodCategory += F_UpdateFoodCategory;
            f.DeleteFoodCategory += F_DeleteFoodCategory;
            f.InsertFoodTable    += F_InsertFoodTable;
            f.UpdateFoodTable    += F_UpdateFoodTable;
            f.DeleteFoodTable    += F_DeleteFoodTable;
            f.UpdateAccount      += F_UpdateAccount;
            f.ShowDialog();
        }
Beispiel #14
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin();

            f.loginAccount = LoginAccount;        // 21

            f.InsertFood += f_InsertFood;         // 18
            f.DeleteFood += f_DeleteFood;         // 18
            f.UpdateFood += f_UpdateFood;         // 18

            f.InsertCategory += f_InsertCategory; // tự làm
            f.DeleteCategory += f_DelateCategory; // tự làm
            f.UpdateCategory += f_UpdateCategory; // tự làm

            f.InsertTable += f_InsertTable;       // tự làm
            f.DeleteTable += f_DeleteTable;       // tự làm
            f.UpdateTable += f_UpdateTable;       // tự làm
            f.ShowDialog();
        }
Beispiel #15
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin admin = new fAdmin();

            admin.ShowDialog();
        }
        private void tàiKhoảnToolStripMenuItem_Click(object sender, EventArgs e)
        {
            fAdmin f = new fAdmin();

            f.ShowDialog();
        }
        private void mntAdmin_Click(object sender, EventArgs e)
        {
            fAdmin fAdmin = new fAdmin();

            fAdmin.ShowDialog();
        }