private void btnAddCustomerGroup_Click(object sender, EventArgs e) { try { string NameCompany = lueCompany.Text; if (NameCompany.Equals("--- Chọn lựa ---") || NameCompany.Equals("")) { lueCompany.Text = "--- Chọn lựa ---"; MessageBox.Show("Vui lòng chọn công ty .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { int IDCompany = Convert.ToInt32(lueCompany.EditValue.ToString()); frmIns_CustomerGroups afrmIns_CustomerGroups = new frmIns_CustomerGroups(this, IDCompany, NameCompany); afrmIns_CustomerGroups.ShowDialog(); } } catch (Exception ex) { MessageBox.Show("frmTsk_UpdBooking.btnAddCustomerGroup_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnAddCustomerGroup_Click(object sender, EventArgs e) { try { if (String.IsNullOrEmpty(lueCompany.Text)==true) { lueCompany.Focus(); MessageBox.Show("Vui lòng chọn tên công ty .", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information); } else { int IDCompany = Convert.ToInt32(lueCompany.EditValue.ToString()); frmIns_CustomerGroups afrmIns_CustomerGroups = new frmIns_CustomerGroups(this, IDCompany, NameCompany); afrmIns_CustomerGroups.ShowDialog(); } } catch (Exception ex) { MessageBox.Show("frmIns_CustomerGroups_Customers.btnAddCustomerGroups_Click\n" + ex.ToString(), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnAdd_Click(object sender, EventArgs e) { frmIns_CustomerGroups afrmIns_CustomerGroups = new frmIns_CustomerGroups(this); afrmIns_CustomerGroups.ShowDialog(); }
private void barButtonItem17_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { frmIns_CustomerGroups afrmIns_CustomerGroups = new frmIns_CustomerGroups(); afrmIns_CustomerGroups.ShowDialog(); }