Beispiel #1
0
 private void button29_Click(object sender, EventArgs e)
 {
     Parametres.key.SetValue("Database", textBox12.Text);
     Parametres.key.SetValue("ServeurMySql" + textBox12.Text, textBox11.Text);
     Parametres.key.SetValue("UserMySql" + textBox12.Text, textBox10.Text);
     Parametres.key.SetValue("PassMySql" + textBox12.Text, textBox9.Text);
     Parametres.Openconnection(textBox11.Text, textBox10.Text, textBox9.Text, textBox12.Text);
     //Parametres.Closeconnection();
 }
Beispiel #2
0
        private void button50_Click(object sender, EventArgs e)
        {
            Objets.LocalSaveSetting("B1-Prestashop", "Config", "Databasetest", textBox7.Text);
            Objets.LocalSaveSetting("B1-Prestashop", "Config", "ServeurMySqltest", textBox8.Text);
            Objets.LocalSaveSetting("B1-Prestashop", "Config", "UserMySqltest", textBox13.Text);
            Objets.LocalSaveSetting("B1-Prestashop", "Config", "PassMySqltest", Objets.StrCrypt(textBox14.Text, Conversions.ToString(b1Prestashop_Tools.cleCrypt)));
            bool Connexion = Parametres.Openconnection(textBox8.Text, textBox13.Text, textBox14.Text, textBox7.Text);

            if (!Connexion)
            {
                Interaction.MsgBox("Connexion échouée : ", MsgBoxStyle.Exclamation, this.Text);
            }
            else
            {
                Interaction.MsgBox("Connexion réussie.", MsgBoxStyle.Information, this.Text);
            }
        }