Advertisement
mekasu0124

Untitled

Mar 14th, 2024
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.88 KB | None | 0 0
  1. using MakeMyProject.Services;
  2. using ReactiveUI;
  3.  
  4. namespace MakeMyProject.ViewModels;
  5.  
  6. public class TermsOfServiceViewModel : ViewModelBase
  7. {
  8.     private Helpers _hp = new();
  9.     private string _tosText = "";
  10.     private string _title = "";
  11.  
  12.     public TermsOfServiceViewModel(Helpers hp)
  13.     {
  14.         _hp = hp;
  15.     }
  16.  
  17.     public TermsOfServiceViewModel()
  18.     {
  19.         Title = "Make My Project - Terms Of Service";
  20.         TosText = Hp.GetTosText();
  21.     }
  22.  
  23.     #region Getters/Setters
  24.     public Helpers Hp
  25.     {
  26.         get => _hp;
  27.         set => this.RaiseAndSetIfChanged(ref _hp, value);
  28.     }
  29.  
  30.     public string TosText
  31.     {
  32.         get => _tosText;
  33.         set => this.RaiseAndSetIfChanged(ref _tosText, value);
  34.     }
  35.  
  36.     public string Title
  37.     {
  38.         get => _title;
  39.         set => this.RaiseAndSetIfChanged(ref _title, value);
  40.     }
  41.     #endregion
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement