aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2018-03-10 20:05:42 +0200
committerRoy <roy.mail.net@gmail.com>2018-03-10 20:05:42 +0200
commit1270aaf9eac23a03ee8e8ec6ceb9fc6cae6d6c65 (patch)
tree7f060beda680cf8d9c5b7320aa31afbc477ce72f /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
parentba06627369df7c7eebc38fbefc22f2f78124f33a (diff)
downloadTango-1270aaf9eac23a03ee8e8ec6ceb9fc6cae6d6c65.tar.gz
Tango-1270aaf9eac23a03ee8e8ec6ceb9fc6cae6d6c65.zip
Profiling and performance optimizations..
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
index 7d83fa032..9ee8471ec 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoadingViewVM.cs
@@ -28,6 +28,14 @@ namespace Tango.MachineStudio.UI.ViewModels
private LogManager logManager = LogManager.Default;
public IStudioApplicationManager ApplicationManager { get; set; }
+ private bool _isLoading;
+
+ public bool IsLoading
+ {
+ get { return _isLoading; }
+ set { _isLoading = value; RaisePropertyChangedAuto(); }
+ }
+
/// <summary>
/// Initializes a new instance of the <see cref="LoadingViewVM"/> class.
/// </summary>
@@ -48,6 +56,8 @@ namespace Tango.MachineStudio.UI.ViewModels
/// </summary>
private void Load()
{
+ IsLoading = true;
+
ThreadsHelper.StartStaThread(() =>
{
try
@@ -57,6 +67,7 @@ namespace Tango.MachineStudio.UI.ViewModels
{
_studioModuleLoader.LoadModules();
_navigationManager.NavigateTo(NavigationView.LoginView);
+ IsLoading = false;
});
}
catch (Exception ex)