示例#1
0
        private void pictureAdd_Click(object sender, EventArgs e)
        {
            coString = "SERVER= localhost;DATABASE= dragonica ;UID=" + id + ";PASSWORD="******";";

            if (saveCheckBox.Checked)
            {

                ConnexionItem itm = new ConnexionItem(nameText, coString);
                parentF.comboCo.Items.Add(itm);
                coKey = Registry.CurrentUser.CreateSubKey("Connexion BDD");
                coKey.SetValue(nameText, coString);
                coKey.Close();
                parentF.comboCo.Refresh();
                this.Close();

            }
        }
示例#2
0
 private void comboCo_SelectedIndexChanged(object sender, EventArgs e)
 {
     connectioniTem = (ConnexionItem)comboCo.SelectedItem;
 }