Esempio n. 1
0
 public SaveCommand(UncheckedRecord uncheckedRecord, IJournalRepository journalRepository, MainWindowModel vievModel)
 {
     this._uncheckedRecord   = uncheckedRecord;
     this._journalRepository = journalRepository;
     _viewModel = vievModel;
     _uncheckedRecord.PropertyChanged += (s, a) => CanExecuteChanged?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 2
0
 public AddCommand(UncheckedRecord uncheckedRecord)
 {
     _uncheckedRecord = uncheckedRecord;
     _uncheckedRecord.PropertyChanged += (s, args) => CanExecuteChanged?.Invoke(this, EventArgs.Empty);
 }