public EditorTabViewModel(EditorTabModel model) : base(model) { SubscribeModel(model); Commit = new RelayCommand( () => { SetPaths(); Model.Commit(); }, () => { return(Message.Length > 0 && AnyItems && AnyChecked((ChangesTreeDirectoryItem)Items.Single())); }); RefreshItems(); }
public ConflictEditorTabViewModel(EditorTabModel m) : base(m) { Abort = new RelayCommand(() => { Model.Abort(); }); }
void SubscribeModel(EditorTabModel model) { model.RepositoryStatusChanged += RefreshItems; }