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); } }
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); } }