/// <summary>
 /// 触发用户登录事件
 /// </summary>
 /// <param name="userName"></param>
 /// <param name="paswd"></param>
 private void OnUserLogin(string userName,string paswd)
 {
     LoginEventArg e = new LoginEventArg();
     e.UserName = userName;
     e.Paswd = paswd;
     eventUserLogin(this,e);
 }
 /// <summary>
 /// 触发用户角色改变事件
 /// </summary>
 /// <param name="role"></param>
 private void OnRoleChange(AccountRole role)
 {
     LoginEventArg e = new LoginEventArg();
     e.CurRole = role;
     if(role == AccountRole.OPERATOR)
     {
         this.textBoxPaswd.Enabled = false;
     }
     else
     {
         this.textBoxPaswd.Enabled = true;
     }
     if(eventRoleChange != null)
     {
         eventRoleChange(this, e);
     }
 }