@@ -301,8 +301,8 @@ private static GroupInfo ParseGroupInfo(GroupViewModel instance)
301301 ! string . Equals ( instance . Group . Name , name , StringComparison . Ordinal ) )
302302 foreach ( var profile in profiles )
303303 profile . Group = name ;
304- else
305- Debug . WriteLine ( "Cannot update group in profiles" ) ;
304+ // else
305+ // Debug.WriteLine("Cannot update group in profiles");
306306 }
307307
308308 return new GroupInfo
@@ -468,7 +468,7 @@ private static GroupInfo ParseGroupInfo(GroupViewModel instance)
468468
469469 #region Dialog to add, edit, copy as and delete profile
470470
471- public static Task ShowAddProfileDialog ( IProfileManagerMinimal viewModel ,
471+ public static Task ShowAddProfileDialog ( object context , IProfileManagerMinimal viewModel ,
472472 IDialogCoordinator dialogCoordinator , ProfileInfo profile = null , string group = null ,
473473 ApplicationName applicationName = ApplicationName . None )
474474 {
@@ -480,13 +480,13 @@ public static Task ShowAddProfileDialog(IProfileManagerMinimal viewModel,
480480
481481 ProfileViewModel profileViewModel = new ( async instance =>
482482 {
483- await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
483+ await dialogCoordinator . HideMetroDialogAsync ( context , customDialog ) ;
484484 viewModel . OnProfileManagerDialogClose ( ) ;
485485
486486 ProfileManager . AddProfile ( ParseProfileInfo ( instance ) ) ;
487487 } , async _ =>
488488 {
489- await dialogCoordinator . HideMetroDialogAsync ( viewModel , customDialog ) ;
489+ await dialogCoordinator . HideMetroDialogAsync ( context , customDialog ) ;
490490 viewModel . OnProfileManagerDialogClose ( ) ;
491491 } , ProfileManager . GetGroupNames ( ) , group , ProfileEditMode . Add , profile , applicationName ) ;
492492
@@ -497,7 +497,7 @@ public static Task ShowAddProfileDialog(IProfileManagerMinimal viewModel,
497497
498498 viewModel . OnProfileManagerDialogOpen ( ) ;
499499
500- return dialogCoordinator . ShowMetroDialogAsync ( viewModel , customDialog ) ;
500+ return dialogCoordinator . ShowMetroDialogAsync ( context , customDialog ) ;
501501 }
502502
503503 public static Task ShowEditProfileDialog ( IProfileManagerMinimal viewModel ,
0 commit comments