Ejemplo n.º 1
0
        private void button1_Click(object sender, System.EventArgs e)
        {
            RegisterAccess.WriteKey("serverName", this.serverName.Text);
            RegisterAccess.WriteKey("dataBase", this.dataBase.Text);
            RegisterAccess.WriteKey("userID", this.userID.Text);
            RegisterAccess.WriteKey("passWord", this.passWord.Text);
            RegisterAccess.WriteKey("port", this.port.Text);

            if (rdbSql2000.Checked)
            {
                RegisterAccess.WriteKey("DBType", "SQLSERVER2000");
            }
            else if (rdbSQL2005.Checked)
            {
                RegisterAccess.WriteKey("DBType", "SQLSERVER2005");
            }
            else if (rdbMySQL.Checked)
            {
                RegisterAccess.WriteKey("DBType", "MYSQL");
            }
            else if (rdbOracle.Checked)
            {
                RegisterAccess.WriteKey("DBType", "ORACLE11G");
            }
            DataMarket.SetTableDataSetNull();


            this.DialogResult = DialogResult.OK;
        }
Ejemplo n.º 2
0
        private void save_Click(object sender, System.EventArgs e)
        {
            RegisterAccess.WriteKey("corpName", this.corpName.Text);
            RegisterAccess.WriteKey("structureName", this.structureName.Text);
            RegisterAccess.WriteKey("userName", this.userName.Text);
            RegisterAccess.WriteKey("email", this.eMail.Text);

            this.Close();
        }