private void salesFormsToolStripMenuItem_Click(object sender, EventArgs e) { //Set the value to transacionType method to sales transactionType = "Sales"; FrmPurchaseAndSales sales = new FrmPurchaseAndSales(); sales.Show(); }
private void purchaseToolStripMenuItem_Click(object sender, EventArgs e) { //set value on transactionType static method transactionType = "Purchase"; FrmPurchaseAndSales purchase = new FrmPurchaseAndSales(); purchase.MdiParent = this; purchase.Show(); }