public UserCreationForm()
 {
     fields = new List <Field>()
     {
         name, login, email, password, role, submit
     };
     submit.AddClickHandler(Create);
 }
示例#2
0
 public SignForm(Control groupBox)
 {
     this.groupBox = groupBox;
     submit.AddClickHandler(SignIn);
     fields = new List <Field> {
         name, password, rememberMe, submit
     };
 }
示例#3
0
 public RegisterForm(Control groupBox)
 {
     this.groupBox = groupBox;
     submit.AddClickHandler(new EventHandler(Register));
     fields = new List <Field> {
         name, login, email, password, passwordRepeat, rememberMe, submit
     };
 }
示例#4
0
 public ChangePasswordForm(UserController user)
 {
     fields = new List <Field>()
     {
         password, passwordRepeat, submit
     };
     submit.AddClickHandler(new EventHandler(ChangePassword));
     this.user = user;
 }
 public ResetPasswordForm()
 {
     sendButton.AddClickHandler(SendEmail);
     submit.AddClickHandler(ResetPassword);
     fields = new List <Field> {
         email, code, sendButton, submit
     };
     user = null;
 }
示例#6
0
        public ModifyUserForm(UserController user)
        {
            fields = new List <Field>()
            {
                login, name, password, role, submit
            };

            login.setPlaceholder(user.Login);
            name.setPlaceholder(user.Name);
            role.setPlaceholder(user.Role);

            submit.AddClickHandler(Modify);
            this.user = user;
        }