AuthorizationPageViewModel.cs 915 B

12345678910111213141516171819202122232425262728
  1. using Avalonia.Controls;
  2. using ReactiveUI;
  3. using FinancialManagement.Views;
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. namespace FinancialManagement.ViewModels
  10. {
  11. public class AuthorizationPageViewModel : ReactiveObject
  12. {
  13. string login = "";
  14. string password = "";
  15. string message = "";
  16. char? passwordChar = '*';
  17. public string Login { get => login; set => login = value; }
  18. public string Password { get => password; set => password = value; }
  19. public string Message { get => message; set => this.RaiseAndSetIfChanged(ref message, value); }
  20. public char? PasswordChar { get => passwordChar; set => this.RaiseAndSetIfChanged(ref passwordChar, value); }
  21. public UserControl LoadPageRegistration()
  22. {
  23. return new RegistrationPage();
  24. }
  25. }
  26. }