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