From d1d28d68564d0a76021944ba1e2993ffb3eaba61 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 10 Mar 2021 03:59:31 +0200 Subject: Bit completed except updated BIT types. --- .../PPC/Tango.PPC.UI/Bit/DefaultBitManager.cs | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.UI/Bit/DefaultBitManager.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Bit/DefaultBitManager.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Bit/DefaultBitManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Bit/DefaultBitManager.cs new file mode 100644 index 000000000..bc132335e --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Bit/DefaultBitManager.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using Tango.Core.DI; +using Tango.PPC.Common.Bit; +using Tango.PPC.Common.Notifications; +using Tango.PPC.UI.Dialogs; + +namespace Tango.PPC.UI.Bit +{ + public class DefaultBitManager : IBitManager + { + private bool _isShowing; + + [TangoInject] + public INotificationProvider NotificationProvider { get; set; } + + public async Task ShowBitResultsDialog() + { + if (_isShowing) return; + _isShowing = true; + await NotificationProvider.ShowDialog(); + _isShowing = false; + } + } +} -- cgit v1.3.1