|
2 | 2 | using NETworkManager.Profiles; |
3 | 3 | using NETworkManager.ViewModels; |
4 | 4 | using NETworkManager.Views; |
| 5 | +using System.Threading.Tasks; |
5 | 6 |
|
6 | 7 | namespace NETworkManager |
7 | 8 | { |
8 | 9 | public static class ProfileDialogManager |
9 | 10 | { |
10 | 11 |
|
11 | 12 | #region Add profile, Edit profile, CopyAs profile, Delete profile, Edit group |
12 | | - public static async void ShowAddProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator) |
| 13 | + public static async Task ShowAddProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator) |
13 | 14 | { |
14 | 15 | var customDialog = new CustomDialog |
15 | 16 | { |
@@ -38,7 +39,7 @@ public static async void ShowAddProfileDialog(IProfileManager viewModel, IDialog |
38 | 39 | await dialogCoordinator.ShowMetroDialogAsync(viewModel, customDialog); |
39 | 40 | } |
40 | 41 |
|
41 | | - public static async void ShowEditProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, ProfileInfo selectedProfile) |
| 42 | + public static async Task ShowEditProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, ProfileInfo selectedProfile) |
42 | 43 | { |
43 | 44 | var customDialog = new CustomDialog |
44 | 45 | { |
@@ -68,7 +69,7 @@ public static async void ShowEditProfileDialog(IProfileManager viewModel, IDialo |
68 | 69 | await dialogCoordinator.ShowMetroDialogAsync(viewModel, customDialog); |
69 | 70 | } |
70 | 71 |
|
71 | | - public static async void ShowCopyAsProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, ProfileInfo selectedProfile) |
| 72 | + public static async Task ShowCopyAsProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, ProfileInfo selectedProfile) |
72 | 73 | { |
73 | 74 | var customDialog = new CustomDialog |
74 | 75 | { |
@@ -96,7 +97,7 @@ public static async void ShowCopyAsProfileDialog(IProfileManager viewModel, IDia |
96 | 97 | await dialogCoordinator.ShowMetroDialogAsync(viewModel, customDialog); |
97 | 98 | } |
98 | 99 |
|
99 | | - public static async void ShowDeleteProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, ProfileInfo selectedProfile) |
| 100 | + public static async Task ShowDeleteProfileDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, ProfileInfo selectedProfile) |
100 | 101 | { |
101 | 102 | var customDialog = new CustomDialog |
102 | 103 | { |
@@ -124,7 +125,7 @@ public static async void ShowDeleteProfileDialog(IProfileManager viewModel, IDia |
124 | 125 | await dialogCoordinator.ShowMetroDialogAsync(viewModel, customDialog); |
125 | 126 | } |
126 | 127 |
|
127 | | - public static async void ShowEditGroupDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, string group) |
| 128 | + public static async Task ShowEditGroupDialog(IProfileManager viewModel, IDialogCoordinator dialogCoordinator, string group) |
128 | 129 | { |
129 | 130 | var customDialog = new CustomDialog |
130 | 131 | { |
|
0 commit comments