Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Diary.ViewModels;
- using System.Threading;
- using ReactiveUI;
- namespace SplashScreen.ViewModels
- {
- internal class SplashViewModel : ViewModelBase
- {
- #region PrivateColorsForScreen
- private string _background = "";
- private string _foreground = "";
- private string _border = "";
- public string Background
- {
- get => _background;
- set => this.RaiseAndSetIfChanged(ref _background, value);
- }
- public string Foreground
- {
- get => _foreground;
- set => this.RaiseAndSetIfChanged(ref _foreground, value);
- }
- public string Border
- {
- get => _border;
- set => this.RaiseAndSetIfChanged(ref _border, value);
- }
- #endregion
- private string _startUpMessage = "";
- public string StartUpMessage
- {
- get => _startUpMessage;
- set => this.RaiseAndSetIfChanged(ref _startUpMessage, value);
- }
- public SplashViewModel()
- {
- StartUpMessage = "Application Is Loading . . .";
- }
- private CancellationTokenSource _cts = new CancellationTokenSource();
- public CancellationToken cancellationToken => _cts.Token;
- public void Cancel()
- {
- _cts.Cancel();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment