static void HandleUnhandledException(object sender, UnhandledExceptionEventArgs args) { Exception ex = (Exception)args.ExceptionObject; if (IsExitGUIException(ex) || !IsPlasticStackTrace(ex.StackTrace)) { return; } GUIActionRunner.RunGUIAction(delegate { ExceptionsHandler.HandleException("HandleUnhandledException", ex); }); }
public bool ContinueWithPendingChanges() { bool result = false; GUIActionRunner.RunGUIAction(() => { result = ConfirmContinueWithPendingChangesDialog.ConfirmContinue( mTitle, mExplanation, mViewSwitcher, mParentWindow); }); return(result); }
public bool AcceptInvalidHostname(string certHostname, string serverHostname) { bool result = false; GUIActionRunner.RunGUIAction(delegate { result = GuiMessage.ShowQuestion( PlasticLocalization.GetString( PlasticLocalization.Name.InvalidCertificateHostnameTitle), PlasticLocalization.GetString( PlasticLocalization.Name.InvalidCertificateHostnameMessage, certHostname, serverHostname), PlasticLocalization.GetString(PlasticLocalization.Name.YesButton)); }); return(result); }
bool IChannelCertificateUI.AcceptInvalidHostname(string certHostname, string serverHostname) { bool result = false; GUIActionRunner.RunGUIAction(delegate { result = EditorUtility.DisplayDialog( PlasticLocalization.GetString( PlasticLocalization.Name.InvalidCertificateHostnameTitle), PlasticLocalization.GetString( PlasticLocalization.Name.InvalidCertificateHostnameMessage, certHostname, serverHostname), PlasticLocalization.GetString(PlasticLocalization.Name.YesButton), PlasticLocalization.GetString(PlasticLocalization.Name.NoButton)); }); return(result); }