private void toolStripButtonAddSupplier_Click(object sender, EventArgs e) { NewSupplierForm frm = new NewSupplierForm(); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { listViewSuppliersLoad(Supplier.All()); } }
private void btnNewSupplier_Click(object sender, EventArgs e) { NewSupplierForm frm = new NewSupplierForm(); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { cbbSupplierLoad(); } }
private void toolStripButtonUpdateSupplier_Click(object sender, EventArgs e) { if (listViewSuppliers.SelectedItems.Count > 0) { NewSupplierForm frm = new NewSupplierForm(); frm.SupplierID = MyConvert.ToInt32(listViewSuppliers.SelectedItems[0].SubItems[0].Text); frm.ShowDialog(); if (frm.DialogResult == System.Windows.Forms.DialogResult.OK) { listViewSuppliersLoad(Supplier.All()); } } }