Пример #1
0
 private void comboBoxBranch_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (environmentSettings != null)
     {
         environmentSettings.Branch = EnvironmentSettings.Branches[comboBoxBranch.SelectedIndex];
         EnvironmentSettings.DisplayEnvironmentVariables(environmentSettings, richTextBoxOutput);
     }
 }
Пример #2
0
        private void comboBoxEnvironment_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (environmentSettings != null)
            {
                environmentSettings.Environment   = EnvironmentSettings.EnvironmentTypes[comboBoxEnvironment.SelectedIndex];
                textBoxVersion.Enabled            = true;
                checkBoxReleased.Visible          = true;
                buttonUpdateAppJs.Enabled         = true;
                buttonUpdateUserServiceJs.Enabled = true;
                switch (comboBoxEnvironment.SelectedIndex)
                {
                case 0:     // QA
                    comboBoxBranch.SelectedIndex      = 0;
                    textBoxVersion.Text               = "QA";
                    textBoxVersion.Enabled            = false;
                    checkBoxReleased.Visible          = false;
                    buttonUpdateAppJs.Enabled         = false;
                    buttonUpdateUserServiceJs.Enabled = false;
                    break;

                case 1:     // Staging
                case 2:     // DevTest
                case 3:     // OpsTest
                case 4:     // Training
                    comboBoxBranch.SelectedIndex = 1;
                    textBoxVersion.Text          = environmentSettings.CurrentVersion;
                    break;

                case 5:     // Production
                    comboBoxBranch.SelectedIndex = 2;
                    textBoxVersion.Text          = environmentSettings.CurrentVersion;
                    break;

                default:
                    comboBoxBranch.SelectedIndex = 0;
                    textBoxVersion.Text          = environmentSettings.CurrentVersion;
                    break;
                }
                EnvironmentSettings.DisplayEnvironmentVariables(environmentSettings, richTextBoxOutput);
            }
        }
Пример #3
0
 private void InitializeEnvironment()
 {
     environmentSettings = new EnvironmentSettings(EnvironmentSettings.EnvironmentTypes[comboBoxEnvironment.SelectedIndex], textBoxVersion.Text, checkBoxReleased.Checked, EnvironmentSettings.Branches[comboBoxBranch.SelectedIndex]);
     environmentSettings.LocalDirectory = checkBoxLocalDirectory.Checked;
     EnvironmentSettings.DisplayEnvironmentVariables(environmentSettings, richTextBoxOutput);
 }
Пример #4
0
 private void textBoxVersion_TextChanged(object sender, EventArgs e)
 {
     environmentSettings.Version    = textBoxVersion.Text;
     environmentSettings.AppVersion = textBoxVersion.Text;
     EnvironmentSettings.DisplayEnvironmentVariables(environmentSettings, richTextBoxOutput);
 }
Пример #5
0
 private void checkBoxLocalDirectory_CheckedChanged(object sender, EventArgs e)
 {
     environmentSettings.LocalDirectory = checkBoxLocalDirectory.Checked;
     EnvironmentSettings.DisplayEnvironmentVariables(environmentSettings, richTextBoxOutput);
 }
Пример #6
0
 private void buttonDisplayEnvironment_Click(object sender, EventArgs e)
 {
     EnvironmentSettings.DisplayEnvironmentVariables(environmentSettings, richTextBoxOutput);
     richTextBoxOutput.AppendText("Date Time: " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "\n\n");
     richTextBoxOutput.Refresh();
 }
Пример #7
0
 private void checkBoxReleased_CheckedChanged(object sender, EventArgs e)
 {
     environmentSettings.Released = checkBoxReleased.Checked;
     EnvironmentSettings.DisplayEnvironmentVariables(environmentSettings, richTextBoxOutput);
 }