Example #1
0
 /// <summary>
 /// 修改邮箱
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tpChangeEmail_Press(object sender, EventArgs e)
 {
     if (isDemo == false)
     {
         frmUserPwdLayout UserLayout = new frmUserPwdLayout();
         eInfo = EuserInfo.修改邮箱;
         Form.ShowDialog(UserLayout);
     }
     else
     {
         Toast("当前为演示账号,不能进行邮箱修改!");
     }
 }
Example #2
0
 public Boolean isDemo;                             //是否是演示账号
 #endregion
 /// <summary>
 /// 修改密码
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void tpChangePwd_Press(object sender, EventArgs e)
 {
     try
     {
         if (isDemo)
         {
             throw new Exception("当前为演示账号,不能进行密码修改!");
         }
         else
         {
             frmUserPwdLayout UserLayout = new frmUserPwdLayout();
             eInfo = EuserInfo.修改密码;
             Form.ShowDialog(UserLayout);
         }
     }
     catch (Exception ex)
     {
         Toast(ex.Message);
     }
 }