public Form_EnvironmentJenkins()
        {
            InitializeComponent();
            this.ClientSize = new Size(460, 160);

            Conf_EnvironmentJenkins_xml inst_Conf_EnvironmentJenkins_xml = new Conf_EnvironmentJenkins_xml();

            string[] settingsFromFile = inst_Conf_EnvironmentJenkins_xml.LoadDataFromFile().Split(new string[] { "#" }, StringSplitOptions.RemoveEmptyEntries);
            //if settings were saved before, read these date and output to form
            if (settingsFromFile.Length == 0)
            {
                labelControl_Form_EnvironmentJenkins_NoServers.Visible = true;
            }
            else
            {
                Change_label_NoServers(settingsFromFile);
            }


            textEdit_Form_EnvironmentJenkins_JenkinsName.Click += new EventHandler(textEdit_Form_EnvironmentJenkins_JenkinsName_Click);
            textEdit_Form_EnvironmentJenkins_Link.Click        += new EventHandler(textEdit_Form_EnvironmentJenkins_Link_Click);


            // item1.Description = "Hide Button";
            //radioGroup1.it
            // radioGroup1 item1 = new RadioGroupItem();
            //item1.Description = "Hide Button";
        }
Exemplo n.º 2
0
        private void Form_Jenkins_PluginList_Load(object sender, EventArgs e)
        {
            Conf_EnvironmentJenkins_xml inst_Conf_EnvironmentJenkins_xml = new Conf_EnvironmentJenkins_xml();

            string[] settingsFromFile = inst_Conf_EnvironmentJenkins_xml.LoadDataFromFile().Split(new string[] { "#" }, StringSplitOptions.RemoveEmptyEntries);



            comboBoxEdit_Form_Jenkins_ChooseServer.Text = settingsFromFile[0];
            for (int i = 0; i < settingsFromFile.Length; i++)
            {
                comboBoxEdit_Form_Jenkins_ChooseServer.Properties.Items.AddRange(new object[] { settingsFromFile[i] });
            }

            inst_ShowPlugins.execute(comboBoxEdit_Form_Jenkins_ChooseServer.Text);
        }
Exemplo n.º 3
0
        private void Form_Jenkins_CreateProject_Load(object sender, EventArgs e)
        {
            Conf_EnvironmentJenkins_xml inst_Conf_EnvironmentJenkins_xml = new Conf_EnvironmentJenkins_xml();

            string[] settingsFromFile = inst_Conf_EnvironmentJenkins_xml.LoadDataFromFile().Split(new string[] { "#" }, StringSplitOptions.RemoveEmptyEntries);

            if (settingsFromFile.Length > 0)
            {
                comboBoxEdit_Form_Jenkins_CreateProject_ChooseServer.Text = settingsFromFile[0];
                for (int i = 0; i < settingsFromFile.Length; i++)
                {
                    comboBoxEdit_Form_Jenkins_CreateProject_ChooseServer.Properties.Items.AddRange(new object[] { settingsFromFile[i] });
                }
            }
            else
            {
                MessageBox.Show("Jenkins Server not specified", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }