aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2018-06-30 03:59:41 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2018-06-30 03:59:41 +0300
commit010535f3064bbf69f063c5f329b7689c070a4ea8 (patch)
tree6e3f1b0ea6cc27373c3aea7159069f63ba8c9d0b /Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications
parent48904928ae83d9c836fe8408374a21af01e5b132 (diff)
downloadTango-010535f3064bbf69f063c5f329b7689c070a4ea8.tar.gz
Tango-010535f3064bbf69f063c5f329b7689c070a4ea8.zip
Implemented "Dialogs" on TouchPanel and PPC INotificationProvider !
Added Inject method to TangoIOC. Started working on color correction.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs38
1 files changed, 38 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs
index c3387df48..96de08447 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Notifications/INotificationProvider.cs
@@ -7,6 +7,7 @@ using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;
using Tango.Core.Commands;
+using Tango.SharedUI;
using Tango.Touch.Controls;
namespace Tango.PPC.Common.Notifications
@@ -37,6 +38,16 @@ namespace Tango.PPC.Common.Notifications
bool HasMessageBox { get; }
/// <summary>
+ /// Gets the current dialog.
+ /// </summary>
+ FrameworkElement CurrentDialog { get; }
+
+ /// <summary>
+ /// Gets a value indicating whether this instance has a dialog.
+ /// </summary>
+ bool HasDialog { get; }
+
+ /// <summary>
/// Shows an information message box.
/// </summary>
/// <param name="message">The message.</param>
@@ -67,6 +78,33 @@ namespace Tango.PPC.Common.Notifications
NotificationItem PushNotification(NotificationItem item);
/// <summary>
+ /// Displays the specified dialog in a modal design.
+ /// </summary>
+ /// <typeparam name="VM"></typeparam>
+ /// <param name="datacontext">The data context.</param>
+ /// <param name="view">The view.</param>
+ /// <returns></returns>
+ Task<VM> ShowDialog<VM>(VM datacontext, FrameworkElement view) where VM : DialogViewVM;
+
+ /// <summary>
+ /// Displays the specified dialog in a modal design.
+ /// The notification provider will try to locate the view automatically using conventions.
+ /// </summary>
+ /// <typeparam name="VM"></typeparam>
+ /// <param name="datacontext">The data context.</param>
+ /// <returns></returns>
+ Task<VM> ShowDialog<VM>(VM datacontext) where VM : DialogViewVM;
+
+ /// <summary>
+ /// Displays the specified dialog in a modal design.
+ /// The data context instance will be automatically created.
+ /// The notification provider will try to locate the view automatically using conventions.
+ /// </summary>
+ /// <typeparam name="VM"></typeparam>
+ /// <returns></returns>
+ Task<VM> ShowDialog<VM>() where VM : DialogViewVM;
+
+ /// <summary>
/// Inserts the notification item to the bottom of the notifications collection.
/// </summary>
/// <param name="item">The item.</param>