Esempio n. 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();
 }
Esempio n. 2
0
 public ConflictEditorTabViewModel(EditorTabModel m) : base(m)
 {
     Abort = new RelayCommand(() => { Model.Abort(); });
 }
Esempio n. 3
0
 void SubscribeModel(EditorTabModel model)
 {
     model.RepositoryStatusChanged += RefreshItems;
 }