/// <summary>
        /// Default constructor
        /// </summary>
        public SettingsViewModel()
        {
            // Create commands
            OpenCommand          = new RelayCommand(Open);
            CloseCommand         = new RelayCommand(Close);
            LogoutCommand        = new RelayCommand(Logout);
            ClearUserDataCommand = new RelayCommand(ClearUserData);

            // TODO: Remove this once th real back-end is ready
            Name = new TextEntryViewModel {
                Label = "Name", OriginalText = $"Luke Malpass"
            };
            Username = new TextEntryViewModel {
                Label = "Username", OriginalText = "luke"
            };
            Password = new PasswordEntryViewModel {
                Label = "Password", FakePassword = "******"
            };
            Email = new TextEntryViewModel {
                Label = "Email", OriginalText = "*****@*****.**"
            };

            // TODO: Get from localization
            LogoutButtonText = "Logout";
        }
예제 #2
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public SettingsDesignModel()
 {
     Name = new TextEntryViewModel {
         Label = "Name", OriginalText = "Luke Malpass"
     };
     Username = new TextEntryViewModel {
         Label = "Username", OriginalText = "luke"
     };
     Password = new PasswordEntryViewModel {
         Label = "Password", FakePassword = "******"
     };
     Email = new TextEntryViewModel {
         Label = "Email", OriginalText = "*****@*****.**"
     };
 }