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