//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(); }
/* * InvoiceForm 1 argument constructor * Assigns the global variable forInv. */ public InvoiceForm(bool fromInv, InventoryForm invForm) { invinForm = invForm; this.forInv = fromInv; InitializeComponent(); }