Exemple #1
0
 public void ShowTable(List <object> table)
 {
     if (table == null || table.Count == 0)
     {
         MessageBox.Show("there are no items to show");
     }
     else
     {
         tableShow.Children.Clear();
         ProductT showProduct = new ProductT(itsBL, table, user);
         tableShow.Children.Add(showProduct);
     }
 }
Exemple #2
0
 private void homeG_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         List <object> wentedList = itsBL.queryByString(Classes.Product, stringFields.type, "HomeAndGarden", permanent);
         if (wentedList == null || wentedList.Count == 0)
         {
             MessageBox.Show("there are no items to show");
         }
         else
         {
             tablePanel.Children.Clear();
             ProductT showProduct = new ProductT(itsBL, wentedList, whoUse);
             tablePanel.Children.Add(showProduct);
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }