private void btnAddSupplier_Click(object sender, EventArgs e) { frmSupplier _frmSupplier = new frmSupplier(); if (_frmSupplier.ShowDialog() == DialogResult.Cancel) { supplierBindingSource.DataSource = SupplierBUS.getAll(); } }
private void frmSupplier_Load(object sender, EventArgs e) { supplierTBBindingSource.DataSource = SupplierBUS.getAll(); supplierBindingSource.DataSource = new Supplier(); }
private void btnUpdate_Click(object sender, EventArgs e) { SupplierBUS.update(supplierBindingSource.Current as Supplier); supplierTBBindingSource.DataSource = SupplierBUS.getAll(); supplierBindingSource.DataSource = new Supplier(); }
public JsonResult getNCC() { List <Supplier> ldt = supplierBUS.getAll(); return(Json(ldt, JsonRequestBehavior.AllowGet)); }