private void btnSearch_Click(object sender, EventArgs e) { frmSupplierList frm_SupplierList = new frmSupplierList(); frm_SupplierList.ShowDialog(); if (!String.IsNullOrEmpty(GlobalClass.GlobalSupplierId)) { func_Retrieve_Supplier_Details(); // func_Get_Category_Id(); } }
private void btnFindSupplier_Click(object sender, EventArgs e) { GlobalClass.GlobalSupplierId = ""; GlobalClass.GlobalSupplierId = ""; frmSupplierList frm_SupplierList = new frmSupplierList(); frm_SupplierList.ShowDialog(); if (!String.IsNullOrEmpty(GlobalClass.GlobalSupplierId)) { func_Retrieve_Supplier(); cboEUL.Focus(); } else { txtSupplier.Text = ""; btnFindSupplier.Focus(); } }