private void buttonBatches_Click(object sender, EventArgs e) { try { MasterMDI masterMDI = new MasterMDI(GlobalEnums.NmvnTaskID.Batch, new Batches(null, false)); masterMDI.ShowDialog(); masterMDI.Dispose(); } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }
private void buttonItems_Click(object sender, EventArgs e) { try { MasterMDI masterMDI = new MasterMDI(GlobalEnums.NmvnTaskID.Commodity, new Commodities()); masterMDI.ShowDialog(); masterMDI.Dispose(); this.combexCommodityID.DataSource = this.commodityAPIs.GetCommodityBases(); this.invokeEdit(this.batchMasterViewModel.BatchMasterID); } catch (Exception exception) { ExceptionHandlers.ShowExceptionMessageBox(this, exception); } }