ProgressViewModel.cs 994 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using HelloItQuantum.Views;
  4. using ReactiveUI;
  5. namespace HelloItQuantum.ViewModels
  6. {
  7. public class ProgressViewModel : MainWindowViewModel
  8. {
  9. #region
  10. int pbGameHotkeys = 0;
  11. int pbGameCreateFriend = 0;
  12. int pbGameLabyrinth = 0;
  13. public int PbGameHotkeys { get => pbGameHotkeys; set => SetProperty(ref pbGameHotkeys, value); }
  14. public int PbGameCreateFriend { get => pbGameCreateFriend; set => SetProperty(ref pbGameCreateFriend, value); }
  15. public int PbGameLabyrinth { get => pbGameLabyrinth; set => SetProperty(ref pbGameLabyrinth, value); }
  16. #endregion
  17. public ProgressViewModel()
  18. {
  19. PbGameHotkeys = CurrentUser.GameHotkeys;
  20. PbGameCreateFriend = CurrentUser.GameCreateFriend;
  21. PbGameLabyrinth = CurrentUser.GameLabyrinth;
  22. }
  23. public void GoBack()
  24. {
  25. PageSwitch.View = new HomeView();
  26. }
  27. }
  28. }