Inheritance: NotifyPropertyChangedBase
Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public StatusVM(AreaVM areaVM)
        {
            _areaVM = areaVM;

            RefreshCommand = new DelegateCommand(Refresh);
            CommitCommand = new DelegateCommand(Commit);
        }
Ejemplo n.º 3
0
        public BranchVM(AreaVM areaVM, Branch branch)
        {
            _areaVM = areaVM;
            _branch = branch;

            CheckoutCommand = new DelegateCommand(Checkout);
            LogCommand = new DelegateCommand(Log);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 public GraphVM(AreaVM areaVM)
 {
     _areaVM = areaVM;
 }