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);
 }
示例#3
0
 public NewWindowViewModel()
 {
     SaveCommand = new Komanda(SaveExecute, CanExecute);
     NewUser     = new Users();
 }