public void LoadEnvironmentInfo(EnvironmentInfo environmentInfo)
        {
            if (environmentInfo == null)
              {
            throw new ArgumentNullException("environmentInfo");
              }

              Text = "Environment: " + environmentInfo.Name;

              environmentPropertiesPropertyGrid.SelectedObject =
            ViewModelMapper.Map<EnvironmentInfo, EnvironmentInfoInPropertyGridViewModel>(environmentInfo);
        }
Exemple #2
0
        private void OpenWebApp(WebAppProjectInfo webAppProjectInfo, EnvironmentInfo environmentInfo)
        {
            List<string> targetUrls =
            _agentService.GetWebAppProjectTargetUrls(
              webAppProjectInfo.Name,
              environmentInfo.Name);

              if (targetUrls.Count == 1)
              {
            Process.Start(targetUrls[0]);
              }
              else
              {
            new OpenTargetUrlsForm(targetUrls)
              .ShowDialog();
              }
        }
Exemple #3
0
        private void OpenProjectTargetFolder(ProjectInfo projectInfo, EnvironmentInfo environmentInfo)
        {
            List<string> projectTargetFolders =
            _agentService.GetProjectTargetFolders(
              projectInfo.Name,
              environmentInfo.Name);

              if (projectTargetFolders.Count == 1)
              {
            SystemUtils.OpenFolder(projectTargetFolders[0]);
              }
              else
              {
            new OpenTargetFoldersForm(projectTargetFolders)
              .ShowDialog();
              }
        }
            public EnvironmentInfoRow(EnvironmentInfo environmentInfo)
            {
                if (environmentInfo == null)
                {
                  throw new ArgumentNullException("environmentInfo");
                }

                EnvironmentInfo = environmentInfo;
            }