SettingsVM.cs 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. using YJMPD_UWP.Helpers;
  2. namespace YJMPD_UWP.ViewModels
  3. {
  4. public class SettingsVM : TemplateVM
  5. {
  6. public SettingsVM() : base(Util.Loader.GetString("Settings"))
  7. {
  8. }
  9. protected override void UpdatePropertiesToNewLanguage()
  10. {
  11. NotifyPropertyChanged(nameof(Language));
  12. NotifyPropertyChanged(nameof(Reset));
  13. NotifyPropertyChanged(nameof(ResetHeader));
  14. App.MainPage.Title = Util.Loader.GetString("Settings");
  15. }
  16. public string Language
  17. {
  18. get
  19. {
  20. return Util.Loader.GetString("Language");
  21. }
  22. }
  23. public string ResetHeader
  24. {
  25. get
  26. {
  27. return Util.Loader.GetString("Reset");
  28. }
  29. }
  30. public string Reset
  31. {
  32. get
  33. {
  34. return Util.Loader.GetString("Reset") + " " + Util.Loader.GetString("Application");
  35. }
  36. }
  37. }
  38. }