コード例 #1
0
 private void SelectEnvironment(AppStartEnvironment environment)
 {
     if (null == environment)
     {
         ShowNoEnvironment();
     }
     else
     {
         ShowEnvironment(environment);
     }
 }
コード例 #2
0
 private void ShowEnvironment(AppStartEnvironment environment)
 {
     textBoxId.Text = environment.EnvironmentId.ToString(CultureInfo.InvariantCulture);
     textBoxTitle.Text = environment.Title;
     textBoxServer.Text = environment.ServerInstance;
     textBoxDatabase.Text = environment.DatabaseName;
     textBoxConnectionInfo.Text = environment.ConnectionInfo;
     textBoxUsername.Text = environment.UserName;
     textBoxPassword.Text = environment.Password;
     panelEnvironmentInfo.Visible = true;
     buttonOk.Enabled = true;
 }