Beispiel #1
0
 public static bool TryClose(this IModalWindow window)
 {
     try
     {
         window.Close();
         return(true);
     }
     catch (Exception e)
     {
         return(false);
     }
 }
Beispiel #2
0
 private void AuthenticatedCallback(bool authenticated)
 {
     if (authenticated)
     {
         _signInInfoWindow.Close();
     }
     else
     {
         _modalWindowManager.DisplayOkWindow("Error",
                                             "Could not connect to google play.  Please check your internet connection and try again.",
                                             new System.Action <DialogResult>(p => { Application.Quit(); }));
     }
 }
Beispiel #3
0
 private OkCancelDialogBoxResult ExecuteCancelDialog(IOkCancelDialogBoxViewModel dialogViewModel, IModalWindow window)
 {
     dialogViewModel.ExecuteCancel();
     window.Close();
     return(OkCancelDialogBoxResult.Cancel);
 }