blob: bc132335efcd2ba7a4bbdf3e469a2cc0a86630a3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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<BitResultsViewVM>();
_isShowing = false;
}
}
}
|