private void btnAddCustomer_Click(object sender, EventArgs e) { FmAddCustomer ul = new FmAddCustomer(); var result = ul.ShowDialog(this); if (result == System.Windows.Forms.DialogResult.OK) { LoadData(); } }
private void customerGridControl_DoubleClick(object sender, EventArgs e) { if (customerGridView.RowCount > 0) { FmAddCustomer ul = new FmAddCustomer(); ul.LoadCustomerData(sender, e, "Mobile", customerGridView.GetRowCellDisplayText(customerGridView.FocusedRowHandle, customerGridView.Columns["Mobile"]).ToString().Replace("-", "")); var result = ul.ShowDialog(this); if (result == System.Windows.Forms.DialogResult.OK) { LoadData(); } } }