Exemplo n.º 1
0
 /*
  * Function backToolStripMenuItem_Click
  * Back button MenuStrip implementation.
  * Returns to the previous form based on where the order was placed (menu or inventory).
  * Closes the InvoiceForm.
  */
 private void backToolStripMenuItem_Click(object sender, EventArgs e)
 {
     // Returns to InventoryForm
     if (forInv)
     {
         invinForm.Show();
         this.Close();
     }
     // Returns to MenuForm
     else
     {
         menuForm.Visible = true;
         this.Close();
     }
 }
Exemplo n.º 2
0
        //creating a menustrip to allowing this page to connect to inventory
        private void inventoryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            InventoryForm inventory1 = new InventoryForm(this, menuForm);

            inventory1.Show();
        }