Example #1
0
        private void picboxLunch_Click(object sender, EventArgs e)
        {
            if (this.user == "admin")
            {
                FrmLunchMenu lunch = new FrmLunchMenu(user);

                lunch.ShowDialog();
            }
            else
            {
                FrmLunchMenu lunch = new FrmLunchMenu();

                lunch.ShowDialog();
            }
        }
Example #2
0
        private void picboxLunch_Click(object sender, EventArgs e)
        {
            if (this.user == "admin")
            {
                FrmLunchMenu lunch = new FrmLunchMenu(user);

                lunch.ShowDialog();
            }
            else
            {
                FrmLunchMenu lunch = new FrmLunchMenu(user, level, item, subtotal, itemName, price, quantity, table);

                lunch.ShowDialog();
            }
        }