aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-07 15:02:20 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-07-07 15:02:20 +0300
commit4ca8cee91fb46977b75e8329c18d9b6a4654b12e (patch)
treec2a0473f30d9302f4b8eea21f90106d24ba23461 /Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications
parentbed649c7492655c0137237c910b200e053bfa119 (diff)
downloadTango-4ca8cee91fb46977b75e8329c18d9b6a4654b12e.tar.gz
Tango-4ca8cee91fb46977b75e8329c18d9b6a4654b12e.zip
Working on PPC jobs loading performance...
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
index ae777839b..aaa5a9cf3 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Notifications/DefaultNotificationProvider.cs
@@ -386,5 +386,40 @@ namespace Tango.PPC.UI.Notifications
{
return ShowDialog<T>(Activator.CreateInstance<T>());
}
+
+ /// <summary>
+ /// Sets the global busy message.
+ /// </summary>
+ /// <param name="message">The message.</param>
+ public void SetGlobalBusyMessage(string message)
+ {
+ GlobalBusyMessage = message;
+ IsInGlobalBusyState = true;
+
+ RaisePropertyChanged(nameof(IsInGlobalBusyState));
+ RaisePropertyChanged(nameof(GlobalBusyMessage));
+ }
+
+ /// <summary>
+ /// Releases the global busy message.
+ /// </summary>
+ public void ReleaseGlobalBusyMessage()
+ {
+ GlobalBusyMessage = null;
+ IsInGlobalBusyState = false;
+
+ RaisePropertyChanged(nameof(IsInGlobalBusyState));
+ RaisePropertyChanged(nameof(GlobalBusyMessage));
+ }
+
+ /// <summary>
+ /// Gets the current global busy message.
+ /// </summary>
+ public string GlobalBusyMessage { get; private set; }
+
+ /// <summary>
+ /// Gets a value indicating whether this instance is in global busy state.
+ /// </summary>
+ public bool IsInGlobalBusyState { get; private set; }
}
}