private void Display() { allProdList = ProductsSuppliersDB.GetProducts(); prodSuppList = ProductsSuppliersDB.GetProductSuppBySuppID(currentSupp.SupplierId); dataGridProdSupp.DataSource = prodSuppList; dataGridAllProd.DataSource = allProdList; }
private void GetSuppliersProducts(int supplierId) { try { prodSuppList = ProductsSuppliersDB.GetProductSuppBySuppID(supplierId); allProdList = ProductsSuppliersDB.GetProducts(); } catch (Exception ex) { MessageBox.Show(ex.Message, ex.GetType().ToString()); } }