public static bool TryClose(this IModalWindow window) { try { window.Close(); return(true); } catch (Exception e) { return(false); } }
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(); })); } }
private OkCancelDialogBoxResult ExecuteCancelDialog(IOkCancelDialogBoxViewModel dialogViewModel, IModalWindow window) { dialogViewModel.ExecuteCancel(); window.Close(); return(OkCancelDialogBoxResult.Cancel); }