public static AreaVM Create(string name, string path, Action <AreaVM, string, string> afterInit, AreaInitMode areaInitMode, string host = null, int port = 0) { AreaVM area = new AreaVM(name); area.Init(path, areaInitMode, host, port, afterInit); return(area); }
public StatusVM(AreaVM areaVM) { _areaVM = areaVM; RefreshCommand = new DelegateCommand(Refresh); CommitCommand = new DelegateCommand(Commit); }
public BranchVM(AreaVM areaVM, Branch branch) { _areaVM = areaVM; _branch = branch; CheckoutCommand = new DelegateCommand(Checkout); LogCommand = new DelegateCommand(Log); }
public BranchVM(AreaVM areaVM, Branch branch) { m_AreaVM = areaVM; m_Branch = branch; PullCommand = new DelegateCommand(() => Load(Pull)); PushCommand = new DelegateCommand(() => Load(Push)); CheckoutCommand = new DelegateCommand(() => Load(Checkout), () => !IsCurrent); LogCommand = new DelegateCommand(Log); CreatePullRequestCommand = new DelegateCommand(CreatePullRequest); }
public StatusVM(AreaVM areaVM) { _areaVM = areaVM; CustomTags = new ObservableCollection <CustomTagVM>(); RefreshCommand = new DelegateCommand(() => Load(Refresh)); CommitCommand = new DelegateCommand(() => Load(Commit), CanCommit); CreateBranchCommand = new DelegateCommand(() => _areaVM.CreateBranch()); AddTagCommand = new DelegateCommand <TextBox>(AddTag, CanAddTag); RemoveTagCommand = new DelegateCommand <string>(RemoveTag); }
public GraphVM(AreaVM areaVM) { _areaVM = areaVM; }