Beispiel #1
0
        //using this you can select a different TestSet-file
        private void browseButton_Click(object sender, EventArgs e)
        {
            FileDialog fileDialog = new OpenFileDialog();

            fileDialog.Filter       = "All Types|*.*";
            fileDialog.AddExtension = true;

            Console.WriteLine("::::" + ConfigManager.GetSetting("testSetPath"));

            if (fileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                ConfigManager.UpdateSetting("testSetPath", fileDialog.FileName);
                TestsetManagerForm_Load(null, null);
                fileDialog.RestoreDirectory = true;
            }

            //loadItemsIntoListBox();
        }
Beispiel #2
0
        private void saveOptions()
        {
            //save all data into the config-file
            ConfigManager.UpdateSetting("shellUsesDefault", (radioButtonShellDefault.Checked == true) ? "true" : "false");

            ConfigManager.UpdateSetting("step1_1UsesDefault", (radioButton1D1.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step1_2UsesDefault", (radioButton1D2.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step1_3UsesDefault", (radioButton1D3.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step1_4UsesDefault", (radioButton1D4.Checked == true) ? "true" : "false");

            ConfigManager.UpdateSetting("step2_1UsesDefault", (radioButton2D1.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step2_2UsesDefault", (radioButton2D2.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step2_3UsesDefault", (radioButton2D3.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step2_4UsesDefault", (radioButton2D4.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step2_5UsesDefault", (radioButton2D5.Checked == true) ? "true" : "false");

            ConfigManager.UpdateSetting("step3_1UsesDefault", (radioButton3D1.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step3_2UsesDefault", (radioButton3D2.Checked == true) ? "true" : "false");
            ConfigManager.UpdateSetting("step3_3UsesDefault", (radioButton3D3.Checked == true) ? "true" : "false");
        }