private void EnsureSettings()
 {
     if (_settings == null)
     {
         _settings = new TFSServerManagerSettings();
         if (cboServerName.SelectedIndex >= 0)
         {
             _settings.ServerUrl = cboServerName.SelectedItem.ToString();
         }
         if (cboTeamProject.SelectedIndex >= 0)
         {
             _settings.TeamProject = cboTeamProject.SelectedItem.ToString();
         }
     }
 }
 private static string GetBuildServerUrl(TFSServerManagerSettings settings)
 {
     Uri serverUri = new Uri(settings.ServerUrl);
     return String.Format("tfs://{0}/{1}", serverUri.Host, settings.TeamProject);
 }
        public bool Configure(System.Windows.Forms.IWin32Window owner)
        {
            if (TFSSettings == null)
            {
                TFSSettings = new TFSServerManagerSettings();
            }

            TFSServerConfigurationDialog dlg = new TFSServerConfigurationDialog(TFSSettings);

            if (dlg.ShowDialog(owner) == System.Windows.Forms.DialogResult.OK)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
 public TFSServerConfigurationDialog(TFSServerManagerSettings settings)
     : this()
 {
     Settings = settings;
 }