Exemplo n.º 1
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdmin f = new frmAdmin();

            f.loginAccount = LoginAccount;
            f.InsertFood  += f_InsertFood;
            f.DeleteFood  += f_DeleteFood;
            f.UpdateFood  += f_UpdateFood;
            f.ShowDialog();
        }
Exemplo n.º 2
0
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdmin admin = new frmAdmin();

            admin.Insert      += admin_Insert;
            admin.Delete      += admin_Delete;
            admin.UpdateDrink += admin_UpdateDrink;
            this.Hide();
            admin.ShowDialog();
            this.Show();
        }
        private void adminToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdmin f = new frmAdmin();

            f.InsetFood  += f_InsertFood;
            f.DeleteFood += f_DeleteFood;
            f.UpdateFood += f_UpdateFood; /*
                                           * f.UpdateCategory += f_UpdateCategory;
                                           * f.InsetCategory += f_InsertCategory;
                                           * f.DeleteCategory += f_deleteCategofy;*/
            //this.Visible = false;
            f.ShowDialog();
        }