/// <summary> /// 加载用户信息 /// </summary> private void load_user() { //要查询的信息 string UserPhone = "UserPhone"; string UserName = "******"; string UserEmail = "UserEmail"; string UserAdd = "UserAdd"; //开始查询 DBO dbo = new DBO(); dbo.Open(); string tableName = "user_table"; string userNameCol = "user_id"; string mge = dbo.FindRow(tableName, userNameCol, this.userID); dbo.Close(); //查询 结束 if (mge == null) { MessageBox.Show("未查找到!", "错误"); return; } string[] splitChar = { "," }; string[] result = mge.Split(splitChar, StringSplitOptions.None); this.phone = result[1]; this.username = result[2]; this.email = result[4]; this.add = result[6]; this.refreshLbl(); //MessageBox.Show(mge); }