Exemplo n.º 1
0
 /// Common Variables
 ///
 public CategoryViewModel() : base(nameof(CategoryViewModel))
 {
     Categories = new ObservableCollection <Category>(CategoryTable.GetAll());
 }
Exemplo n.º 2
0
 /// Common Variables
 ///
 public ProductViewModel() : base(nameof(ProductViewModel))
 {
     Categories = new ObservableCollection <Category>(CategoryTable.GetAll());
     Products   = new ObservableCollection <Product>(ProductTable.GetAll());
 }