Beispiel #1
0
 public static void ShowFind()
 {
     if (!IsCurrentDialogClosed)
     {
         currentFindDialog.Destroy();
     }
     currentFindDialog = new FindInFilesDialog(false);
     MessageService.PlaceDialog(currentFindDialog, null);
     currentFindDialog.Show();
 }
Beispiel #2
0
 static void ShowSingleInstance(FindInFilesDialog newDialog)
 {
     if (currentFindDialog != null)
     {
         currentFindDialog.Destroy();
     }
     newDialog.Destroyed += (sender, e) => currentFindDialog = null;
     currentFindDialog    = newDialog;
     MessageService.PlaceDialog(currentFindDialog, null);
     currentFindDialog.Present();
 }