private void button5_Click(object sender, EventArgs e)
        {
            Form_AddDatabase fa = new Form_AddDatabase();

            fa.ShowDialog();
            this.Close();
        }
        /// <summary>
        /// 记录服务器设置
        /// </summary>
        private void AddServer()
        {
            string server   = this.comboBox_mysql_server.Text;
            string userid   = this.textBox_mysql_uid.Text;
            string userpass = this.textBox_mysql_pwd.Text;
            string prot     = this.textBox_mysql_port.Text;

            Model.ConfigServers cs = new ConfigServers();
            cs.Name       = string.Format("{0}({1})", server, dbType.ToString());
            cs.Port       = prot;
            cs.Database   = "";
            cs.file       = "";
            cs.Pwd        = this.checkBox1.Checked ? userpass : "";
            cs.ServerName = server;
            cs.Type       = dbType.ToString();
            cs.Uid        = userid;
            Form_AddDatabase.AddServerToXml(cs);
        }
Esempio n. 3
0
        private void TSMIAddServer_Click(object sender, EventArgs e)
        {
            Form_AddDatabase f_adddb = new Form_AddDatabase();

            f_adddb.ShowDialog();
        }