@@ -296,15 +296,15 @@ public static async void ShowAddProfileDialog(IProfileManager viewModel, IDialog
296296 Title = Resources . Localization . Strings . AddProfile
297297 } ;
298298
299- var profileViewModel = new ProfileViewModel ( instance =>
299+ var profileViewModel = new ProfileViewModel ( async instance =>
300300 {
301- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
301+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
302302 viewModel . OnProfileDialogClose ( ) ;
303303
304304 AddProfile ( instance ) ;
305- } , instance =>
305+ } , async instance =>
306306 {
307- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
307+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
308308 viewModel . OnProfileDialogClose ( ) ;
309309 } , GetGroups ( ) ) ;
310310
@@ -324,17 +324,17 @@ public static async void ShowEditProfileDialog(IProfileManager viewModel, IDialo
324324 Title = Resources . Localization . Strings . EditProfile
325325 } ;
326326
327- var profileViewModel = new ProfileViewModel ( instance =>
327+ var profileViewModel = new ProfileViewModel ( async instance =>
328328 {
329- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
329+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
330330 viewModel . OnProfileDialogClose ( ) ;
331331
332332 RemoveProfile ( selectedProfile ) ;
333333
334334 AddProfile ( instance ) ;
335- } , instance =>
335+ } , async instance =>
336336 {
337- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
337+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
338338 viewModel . OnProfileDialogClose ( ) ;
339339 } , GetGroups ( ) , ProfileEditMode . Edit , selectedProfile ) ;
340340
@@ -354,15 +354,15 @@ public static async void ShowCopyAsProfileDialog(IProfileManager viewModel, IDia
354354 Title = Resources . Localization . Strings . CopyProfile
355355 } ;
356356
357- var profileViewModel = new ProfileViewModel ( instance =>
357+ var profileViewModel = new ProfileViewModel ( async instance =>
358358 {
359- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
359+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
360360 viewModel . OnProfileDialogClose ( ) ;
361361
362362 AddProfile ( instance ) ;
363- } , instance =>
363+ } , async instance =>
364364 {
365- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
365+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
366366 viewModel . OnProfileDialogClose ( ) ;
367367 } , GetGroups ( ) , ProfileEditMode . Copy , selectedProfile ) ;
368368
@@ -382,15 +382,15 @@ public static async void ShowDeleteProfileDialog(IProfileManager viewModel, IDia
382382 Title = Resources . Localization . Strings . DeleteProfile
383383 } ;
384384
385- var confirmRemoveViewModel = new ConfirmRemoveViewModel ( instance =>
385+ var confirmRemoveViewModel = new ConfirmRemoveViewModel ( async instance =>
386386 {
387- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
387+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
388388 viewModel . OnProfileDialogClose ( ) ;
389389
390390 RemoveProfile ( selectedProfile ) ;
391- } , instance =>
391+ } , async instance =>
392392 {
393- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
393+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
394394 viewModel . OnProfileDialogClose ( ) ;
395395 } , Resources . Localization . Strings . DeleteProfileMessage ) ;
396396
@@ -410,17 +410,17 @@ public static async void ShowEditGroupDialog(IProfileManager viewModel, IDialogC
410410 Title = Resources . Localization . Strings . EditGroup
411411 } ;
412412
413- var editGroupViewModel = new GroupViewModel ( instance =>
413+ var editGroupViewModel = new GroupViewModel ( async instance =>
414414 {
415- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
415+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
416416 viewModel . OnProfileDialogClose ( ) ;
417417
418418 RenameGroup ( instance . OldGroup , instance . Group ) ;
419419
420420 viewModel . RefreshProfiles ( ) ;
421- } , instance =>
421+ } , async instance =>
422422 {
423- dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
423+ await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
424424 viewModel . OnProfileDialogClose ( ) ;
425425 } , group , GetGroups ( ) ) ;
426426
0 commit comments