Пример #1
0
        public MainVM(ITfsServerService tfServerService, ToolsVM firstTools, ToolsVM secondTools)
        {
            this.FirstTools = firstTools;
            string firstToolsUrl = tfServerService.GetFirstServerUrl();
            this.FirstTools.Address = firstToolsUrl;
            this.FirstTools.SetAddressCommand.Execute(this);

            this.SecondTools = secondTools;
            string secondToolsUrl = tfServerService.GetSecondServerUrl();
            this.SecondTools.Address = secondToolsUrl;
            this.SecondTools.SetAddressCommand.Execute(this);
        }
Пример #2
0
        public MainVM(ITfsServerService tfServerService, ToolsVM firstTools, ToolsVM secondTools)
        {
            this.FirstTools = firstTools;
            string firstToolsUrl = tfServerService.GetFirstServerUrl();

            this.FirstTools.Address = firstToolsUrl;
            this.FirstTools.SetAddressCommand.Execute(this);

            this.SecondTools = secondTools;
            string secondToolsUrl = tfServerService.GetSecondServerUrl();

            this.SecondTools.Address = secondToolsUrl;
            this.SecondTools.SetAddressCommand.Execute(this);
        }