Exemplo n.º 1
0
 public ChangePasswordView(Credentials cred)
     : base()
 {
     credentials        = cred;
     Password           = new StringInputField(nameof(Password), 8, 32);
     NewPassword        = new StringInputField(nameof(NewPassword), 8, 32);
     ConfirmNewPassword = new StringInputField(nameof(ConfirmNewPassword), 8, 32);
 }
 public AdminTagCollection(BaseAdminModelCollection <TagModel> collection)
 {
     Collection = collection;
     Name       = new StringInputField("Name", 1, 64);
     Type       = new StringInputField("Type", 1, 64);
     UpdateType = new StringInputField("Type", 1, 64);
     initCommands();
 }
Exemplo n.º 3
0
 public AdminSongCollection(BaseAdminModelCollection <SongModel> collection)
 {
     Collection = collection;
     Artist     = new StringInputField("Artist", 1, 64);
     Album      = new StringInputField("Album", 1, 64);
     AddTag     = new StringInputField("AddTag", 1, 64);
     initCommands();
 }
Exemplo n.º 4
0
        public LoginView(Credentials cred)
        {
            credentials = cred;

            Username = new StringInputField(nameof(Username), 4, 32);
            Password = new StringInputField(nameof(Password), 8, 32);

            SubmitCommand     = new RelayCommand(handleSubmit);
            GoToSignupCommand = new RelayCommand(handleGoToSignup);
        }
Exemplo n.º 5
0
        public SignUpView(Credentials cred)
        {
            credentials = cred;

            Username        = new StringInputField(nameof(Username), 4, 32);
            Password        = new StringInputField(nameof(Password), 8, 32);
            ConfirmPassword = new StringInputField(nameof(ConfirmPassword), 8, 32);

            SubmitCommand    = new RelayCommand(handleSubmit);
            GoToLoginCommand = new RelayCommand(handleGoToLogin);
        }
Exemplo n.º 6
0
 public RemoveAccountView(Credentials cred)
 {
     credentials = cred;
     Username    = new StringInputField("Username", 4, 32);
     Password    = new StringInputField("Password", 8, 32);
 }