Пример #1
0
        private void picboxBreakfast_Click(object sender, EventArgs e)
        {
            if (this.user == "admin")
            {
                FrmBreakFastMenu breakfast = new FrmBreakFastMenu(user);

                breakfast.ShowDialog();
            }
            else
            {
                FrmBreakFastMenu breakfast = new FrmBreakFastMenu();

                breakfast.ShowDialog();
            }
        }
Пример #2
0
        private void picboxBreakfast_Click(object sender, EventArgs e)
        {
            FrmBreakFastMenu breakfast = new FrmBreakFastMenu(user, level, item, subtotal, itemName, price, quantity, table);

            breakfast.ShowDialog();
        }