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

            fa.ShowDialog();

            this.Close();
        }
        private void AddServer()
        {
            string serverName = this.cBtn_SqlServer_ServerName.Text;
            string userId     = this.tBox_SqlServer_UserName.Text;
            string pwd        = this.tBox_SqlServer_Pwd.Text;

            ConfigServers server = new ConfigServers()
            {
                Name       = string.Format("{0}({1})", serverName, dbType.ToString()),
                Port       = "",
                Database   = "",
                file       = "",
                Pwd        = this.cBox_SqlServer_Remenber.Checked?pwd:"",
                ServerName = serverName,
                Type       = dbType.ToString(),
                Uid        = userId
            };

            Form_AddDatabase.AddServerToXml(server);
        }
Esempio n. 3
0
        public void toolBtnAdd_Click(object sender, EventArgs e)
        {
            Form_AddDatabase f_add = new Form_AddDatabase();

            f_add.ShowDialog();
        }