private void createPurchaseOrderToolStripMenuItem_Click(object sender, EventArgs e) { try { if (!IsValidToOpenChildForm()) { return; } VendorPurchaseOrderForm ObjVendorPurchaseOrderForm = new VendorPurchaseOrderForm(); ShowChildForm(ObjVendorPurchaseOrderForm); } catch (Exception ex) { CommonFunctions.ShowErrorDialog("MainForm.createPurchaseOrderToolStripMenuItem_Click()", ex); } }
public VendorListForm(VendorPurchaseOrderForm ObjForm) { InitializeComponent(); ObjVendorPurchaseOrderForm = ObjForm; dtVendorMaster = CommonFunctions.ReturnDataTableFromExcelWorksheet("VendorMaster", CommonFunctions.MasterFilePath, "VendorName,Line"); }