Beispiel #1
0
 private void updateshuoshuo()
 {
     BLL.userInfo blluserinfo = new BLL.userInfo();
     this._user.userShuoshuo = this.txtshuoshuo.Text;
     blluserinfo.Update(this._user);
     showMyinfo();
     this.lblshuoshuo.Visible = true;
     this.txtshuoshuo.Visible = false;
 }
Beispiel #2
0
 private void FrmMain_FormClosed(object sender, FormClosedEventArgs e)
 {
     this._frm.Dispose();
     BLL.userInfo   bllUserInfo = new BLL.userInfo();
     Model.userInfo user        = bllUserInfo.GetModel(this._user.userID);
     user.userID    = this._user.userID;
     user.userState = 2;
     bllUserInfo.Update(user);
 }
Beispiel #3
0
        private void CreateFrmMain(int id)
        {
            BLL.userInfo   bllUserInfo = new BLL.userInfo();
            Model.userInfo user        = bllUserInfo.GetModel(id);
            FrmMain        frm         = new FrmMain(user, this);

            user.userState = 1;
            bllUserInfo.Update(user);
            frm.Show();
            this._isHide = false;
            this.Hide();
        }
Beispiel #4
0
 private void toolStripMenuItem5_Click(object sender, EventArgs e)
 {
     BLL.userInfo   bllUser = new BLL.userInfo();
     Model.userInfo mu      = new Model.userInfo();
     mu.userID               = this._user.userID;
     mu.userState            = 2;
     mu.userBirthDay         = this._user.userBirthDay;
     mu.userDescription      = this._user.userDescription;
     mu.userHeadImage        = this._user.userHeadImage;
     mu.userName             = this._user.userName;
     mu.userPWD              = this._user.userPWD;
     mu.userSex              = this._user.userSex;
     mu.userShuoshuo         = this._user.userShuoshuo;
     this.pictureBox22.Image = this.imageList2.Images[1];
     bllUser.Update(mu);
 }
Beispiel #5
0
        private void btnOK_Click(object sender, EventArgs e)
        {
            string username = this.txtName.Text;
            int    newindex = Convert.ToInt32(this.cmbImage.Text) - 1;

            if (username == "")
            {
                return;
            }
            this._user.userBirthDay    = this.dtpbirthday.Value;
            this._user.userDescription = this.txtdescription.Text;
            this._user.userHeadImage   = newindex.ToString();
            this._user.userName        = username;
            this._user.userSex         = this.cmbSex.Text;
            BLL.userInfo blluserinfo = new BLL.userInfo();
            blluserinfo.Update(this._user);
            this._frm.changeHeadImage(newindex);
            this._frm.changename(username);
            MessageBox.Show("修改成功!!");
            this.Dispose();
        }
Beispiel #6
0
        private void LoginToMain()
        {
            string userID  = this.cmbUser.Text;
            string userPWD = this.textBox1.Text;

            if (userID == "" || userPWD == "")
            {
                return;
            }
            BLL.userInfo   bllUserInfo = new BLL.userInfo();
            Model.userInfo user        = bllUserInfo.GetModel(Convert.ToInt32(userID));
            if (userPWD != user.userPWD)
            {
                return;
            }
            user.userID    = Convert.ToInt32(userID);
            user.userState = temp;
            bllUserInfo.Update(user);
            FrmMain frm = new FrmMain(user, this);

            frm.Show();
            this.Hide();
        }