private void SelectEnvironment(AppStartEnvironment environment) { if (null == environment) { ShowNoEnvironment(); } else { ShowEnvironment(environment); } }
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; }