From d84f725f000652adf6dc563bc704dba43dd27518 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 27 Jun 2018 17:46:16 +0300 Subject: Implemented loading twine logo.. --- .../PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs index f14fb7283..8668c4489 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/LoadingViewVM.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; +using System.Threading; using System.Threading.Tasks; using Tango.BL; using Tango.Core; @@ -31,12 +32,31 @@ namespace Tango.PPC.UI.ViewModels [TangoInject] public IPPCModuleLoader ModuleLoader { get; set; } + private bool _isLoading; + /// + /// Gets or sets a value indicating whether this instance is loading. + /// + public bool IsLoading + { + get { return _isLoading; } + set { _isLoading = value; RaisePropertyChangedAuto(); } + } + + /// + /// Initializes a new instance of the class. + /// + public LoadingViewVM() + { + Task.Delay(1000).ContinueWith((x) => { IsLoading = true; }); + } + /// /// Called when the application has been started. /// public override void OnApplicationStarted() { NavigationManager.NavigateTo(NavigationView.LoginView); + IsLoading = false; } } } -- cgit v1.3.1