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); }
public AddCommand(UncheckedRecord uncheckedRecord) { _uncheckedRecord = uncheckedRecord; _uncheckedRecord.PropertyChanged += (s, args) => CanExecuteChanged?.Invoke(this, EventArgs.Empty); }