public MainWindowViewModel()
 {
     ListProduct    = ProductCollection.GetAllProduct();
     DeleteCommand  = new Komanda(DeleteExecute, CanDelete);
     CurrentUser    = null;
     CurrentProduct = null;
 }
 public MainWindowViewModel(Mediator mediator)
 {
     this.mediator  = mediator;
     ListProduct    = ProductCollection.GetAllProduct();
     DeleteCommand  = new Komanda(DeleteExecute, CanDelete);
     CurrentUser    = null;
     CurrentProduct = null;
     mediator.Register("ProductChange", ProductChange);
 }
Exemplo n.º 3
0
 public NewWindowViewModel()
 {
     SaveCommand = new Komanda(SaveExecute, CanExecute);
     NewUser     = new Users();
 }