//showns menus
        private void btnMenus_Click(object sender, EventArgs e)
        {
            frmMenus menu = new frmMenus(tableNumber);

            menu.Show();
            this.Hide();
        }
 //Default constructor setting form item properties
 public FrmPayment(string total, frmMenus frmM)
 {
     InitializeComponent();
     lblPrice.Text = total;
     menu = frmM;
     btnOrder.BackColor = System.Drawing.ColorTranslator.FromHtml("#B5AF19");
     btnOrder.ForeColor = Color.White;
     this.BackgroundImage = Properties.Resources.bg2;
 }
Exemplo n.º 3
0
 //Default constructor setting form item properties
 public FrmPayment(string total, frmMenus frmM)
 {
     InitializeComponent();
     lblPrice.Text        = total;
     menu                 = frmM;
     btnOrder.BackColor   = System.Drawing.ColorTranslator.FromHtml("#B5AF19");
     btnOrder.ForeColor   = Color.White;
     this.BackgroundImage = Properties.Resources.bg2;
 }
 //showns menus
 private void btnMenus_Click(object sender, EventArgs e)
 {
     frmMenus menu = new frmMenus(tableNumber);
     menu.Show();
     this.Hide();
 }