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