private void MouldCodeSwitchEvent(object sender, EventArgs e) { masterMouldCode = new MasterMouldCode(); masterMouldCode.VendorSwitchEvent += new EventHandler(VendorSwitchEvent); masterMouldCode.OemSwitchEvent += new EventHandler(OemSwitchEvent); this.LoadControl(masterMouldCode); }
private void MenuClicked(object sender, EventArgs e) { ToolStripButton btn = (ToolStripButton)sender; string tag = btn.Tag.ToString(); if (tag == "home") { this.LoadMain(); } if (tag == "quotation") { this.LoadQuotation(); } if (tag == "transfer") { this.LoadTransfer(); } if (tag == "disposal") { this.LoadDisposal(); } if (tag == "report") { this.LoadReport(); } if (tag == "data") { masterMouldCode = new MasterMouldCode(); masterMouldCode.VendorSwitchEvent += new EventHandler(VendorSwitchEvent); masterMouldCode.OemSwitchEvent += new EventHandler(OemSwitchEvent); this.LoadControl(masterMouldCode); } if (tag == "setting") { } }