예제 #1
0
        private void ShowTeamForm()
        {
            TeamForm teamForm = new TeamForm(_teamId);

            teamForm.StartPosition = FormStartPosition.CenterParent;
            DialogResult dialogResult = teamForm.ShowDialog(this);

            if (dialogResult == DialogResult.OK)
            {
                _configuration.AppSettings.Settings["TeamId"].Value = teamForm.TeamId;
                _configuration.Save(ConfigurationSaveMode.Modified);
                ConfigurationManager.RefreshSection("appSettings");
                ReadConfiguration();
                SetTitle();
            }
        }
예제 #2
0
파일: MocsForm.cs 프로젝트: ruudkok/MoCS
 private void ShowTeamForm()
 {
     TeamForm teamForm = new TeamForm(_teamId);
     teamForm.StartPosition = FormStartPosition.CenterParent;
     DialogResult dialogResult = teamForm.ShowDialog(this);
     if (dialogResult == DialogResult.OK)
     {
         _configuration.AppSettings.Settings["TeamId"].Value = teamForm.TeamId;
         _configuration.Save(ConfigurationSaveMode.Modified);
         ConfigurationManager.RefreshSection("appSettings");
         ReadConfiguration();
         SetTitle();
     }
 }