Example #1
0
 private void showWantedList(List <object> wanted)
 {
     if (wanted == null || wanted.Count == 0)
     {
         MessageBox.Show("there are no items to show");
     }
     else
     {
         tableShow.Children.Clear();
         ProductDTG showProduct = new ProductDTG(itsBL, wanted);
         tableShow.Children.Add(showProduct);
     }
 }
Example #2
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();
         ProductDTG showProduct = new ProductDTG(itsBL, listP);
         tableShow.Children.Add(showProduct);
     }
 }