Exemple #1
0
 private void btnSelect_Click(object sender, EventArgs e)
 {
     UserInfo.SkinId = int.Parse(cboSkin.SelectedItem.ToString().Split(':')[1]);
     SysUserInfo bUser = new SysUserInfo();
     bUser.UpdateUserInfo(UserInfo, new ObjectControls(MCtrl.SetSkinId));
     this.Close();
 }
Exemple #2
0
 private void btnLogin_Click(object sender, EventArgs e)
 {
     try
     {
         if (!CheckFormInfo())
         {
             lblMsg.Text = "登陆信息不完整";
         }
         else
         {
             SysUserInfo bUser = new SysUserInfo();
             mUserInfo=bUser.GetUserInfo(mUserInfo);
             if (mUserInfo != null)
             {
                 BaseForm.UserInfo = mUserInfo;
                 this.DialogResult = DialogResult.OK;
                 this.Close();
             }
             else
             {
                 throw new Exception("密码验证失败");
             }
         }
     }
     catch (Exception err)
     {
         lblMsg.Text = err.Message;
     }
 }