Exemplo n.º 1
0
        private void picboxHotBeverage_Click(object sender, EventArgs e)
        {
            if (this.user == "admin")
            {
                frmHotBeverage HotBeverage = new frmHotBeverage(user);

                HotBeverage.ShowDialog();
            }
            else
            {
                frmHotBeverage HotBeverage = new frmHotBeverage();

                HotBeverage.ShowDialog();
            }
        }
Exemplo n.º 2
0
        private void picboxHotBeverage_Click(object sender, EventArgs e)
        {
            if (this.user == "admin")
            {
                frmHotBeverage HotBeverage = new frmHotBeverage(user);

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

                HotBeverage.ShowDialog();
            }
        }