mekasu0124

Untitled

Mar 15th, 2024
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.58 KB | None | 0 0
  1. using MakeMyProject.ViewModels;
  2. using ReactiveUI;
  3. using System.Threading;
  4.  
  5. namespace SplashScreen.ViewModels;
  6.  
  7. internal class SplashViewModel : ViewModelBase
  8. {
  9.     private string _startUpMessage = "Application Is Loading. . .";
  10.     public string StartUpMessage
  11.     {
  12.         get => _startUpMessage;
  13.         set => this.RaiseAndSetIfChanged(ref _startUpMessage, value);
  14.     }
  15.  
  16.     private CancellationTokenSource _cts = new CancellationTokenSource();
  17.     public CancellationToken cancellationToken => _cts.Token;
  18.  
  19.     public void Cancel()
  20.     {
  21.         _cts.Cancel();
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment