public UserCreationForm() { fields = new List <Field>() { name, login, email, password, role, submit }; submit.AddClickHandler(Create); }
public SignForm(Control groupBox) { this.groupBox = groupBox; submit.AddClickHandler(SignIn); fields = new List <Field> { name, password, rememberMe, submit }; }
public RegisterForm(Control groupBox) { this.groupBox = groupBox; submit.AddClickHandler(new EventHandler(Register)); fields = new List <Field> { name, login, email, password, passwordRepeat, rememberMe, submit }; }
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; }
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; }