示例#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);
 }
示例#2
0
文件: AddCommand.cs 项目: ATAR1/UNSK
 public AddCommand(UncheckedRecord uncheckedRecord)
 {
     _uncheckedRecord = uncheckedRecord;
     _uncheckedRecord.PropertyChanged += (s, args) => CanExecuteChanged?.Invoke(this, EventArgs.Empty);
 }