forked from NimmLor/IoT-Audio-Visualization-Center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NewDeviceViewModel.cs
40 lines (33 loc) · 987 Bytes
/
NewDeviceViewModel.cs
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
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MahApps.Metro.Controls.Dialogs;
namespace Analyzer
{
public class NewDeviceViewModel
{
private IDialogCoordinator dialogCoordinator;
// Constructor
public NewDeviceViewModel(IDialogCoordinator instance)
{
dialogCoordinator = instance;
}
// Methods
private async void FooMessageAsync()
{
await dialogCoordinator.ShowMessageAsync(this, "HEADER", "MESSAGE");
//await dialogCoordinator.
}
private void FooProgress()
{
// Show...
//ProgressDialogController controller = await dialogCoordinator.ShowProgressAsync(this, "HEADER", "MESSAGE");
//controller.SetIndeterminate();
// Do your work...
// Close...
//await controller.CloseAsync();
}
}
}