private void button25_Click(object sender, EventArgs e) { Parametres.startservice(""); if ("1" == ((string)Parametres.key.GetValue("active"))) { pictureBox1.BackgroundImage = Properties.Resources.Cute_Ball_Go_icon_V; button26.Enabled = false; button25.Enabled = true; } else { pictureBox1.BackgroundImage = Properties.Resources.Cute_Ball_Shutdown_icon_R; button25.Enabled = false; button26.Enabled = true; } }
private void Form1_Load(object sender, EventArgs e) { textBox11.Text = (string)Parametres.key.GetValue("ServeurMySql" + textBox12.Text); textBox10.Text = (string)Parametres.key.GetValue("UserMySql" + textBox12.Text); textBox9.Text = (string)Parametres.key.GetValue("PassMySql" + textBox12.Text); //sap-sql textBox19.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "SQLServer", "", null)); comboBox2.SelectedItem = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "TypeServeur", "", null)); textBox18.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "SQLUser", "", null)); textBox17.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "SQLPassword", "", null)); if (Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "SQLAuthModeWindows", "", null)) != "False") { checkBox15.Checked = true; } else { checkBox15.Checked = false; } comboBox3.SelectedItem = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "SBODbCompany", "", null)); comboBox1.SelectedItem = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "LicenceServer", "", null)); textBox16.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "SBOUser", "", null)); textBox15.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "SBOPassword", "", null)); //mysql textBox7.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "Databasetest", "", null)); textBox8.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "ServeurMySqltest", "", null)); textBox13.Text = Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "UserMySqltest", "", null)); textBox14.Text = Objets.StrDecrypt(Conversions.ToString(Objets.GlobalGetSettingtest("B1-Prestashop", "Config", "PassMySqltest", "", null)), Conversions.ToString(b1Prestashop_Tools.cleCrypt), false); Parametres.startservice("formload"); if ("1" == ((string)Parametres.key.GetValue("active"))) { pictureBox1.BackgroundImage = Properties.Resources.Cute_Ball_Go_icon_V; button26.Enabled = false; button25.Enabled = true; } else { pictureBox1.BackgroundImage = Properties.Resources.Cute_Ball_Shutdown_icon_R; button25.Enabled = false; button26.Enabled = true; } }