Exemplo n.º 1
0
        /// <summary>
        /// 读取json文件。z
        /// </summary>
        public void readServerInfo()
        {
            List <Server_Info> jsonSqls = jsonServer_Info.ReadListJson();

            if (jsonSqls != null && jsonSqls.Count > 0)
            {
                Server_Info server_Info = jsonSqls[0];
                this.mtb_server_name.Text = server_Info.serverName;
                //0-Windows身份验证 1-SQL Server身份验证
                this.mcb_authentication.SelectedIndex = server_Info.authentication;
                this.mtb_login_name.Text = server_Info.login_name;
                this.mtb_login_pwd.Text  = server_Info.login_pwd;
            }
        }