Exemplo n.º 1
0
        public PortOptionsViewModel(SolutionItem solution, OptionsViewModel options)
        {
            this.solution = solution;
            Options       = options;

            Locator      = new DXVcsFileLocator(new DXVcsBindingInfo());
            Branches     = new ReadOnlyCollection <string>(GetBranchesList());
            MasterBranch = Options.Branches.LastOrDefault();
            Update();
        }
Exemplo n.º 2
0
        public PortOptionsViewModel(SolutionItem solution, OptionsViewModel options)
        {
            Options = options;

            Locator  = new DXVcsFileLocator(new DXVcsBindingInfo());
            Branches = new ReadOnlyCollection <string>(GetBranchesList());
            string server;
            string filePath;

            CalcProjectPath(solution, out filePath, out server);
            VcsServer       = server;
            ProjectFilePath = filePath;
        }