private void toolStripButtonAdd_Click(object sender, EventArgs e) { NewCustomerForm frm = new NewCustomerForm(); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { toolStripButtonAll.PerformClick(); } }
private void btnNewCustomer_Click(object sender, EventArgs e) { NewCustomerForm frm = new NewCustomerForm(); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { cbbCustomerLoad(Customer.All(0)); } }
private void toolStripButtonUpdate_Click(object sender, EventArgs e) { if (listViewCustomers.SelectedItems.Count > 0) { NewCustomerForm frm = new NewCustomerForm(); frm.CustomerID = listViewCustomers.SelectedItems[0].SubItems[0].Text; frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { toolStripButtonAll.PerformClick(); } } }