protected override void OnClick(EventArgs e) { try { SEBWindowHandler.BringWindowToTop(SEBWindowHandler.GetOpenWindows().First <KeyValuePair <IntPtr, string> >((Func <KeyValuePair <IntPtr, string>, bool>)(w => w.Key.GetProcess().GetExecutableName().Contains("xul"))).Key); if ((bool)SEBSettings.settingsCurrent["touchOptimized"]) { if ((bool)SEBSettings.settingsCurrent["showReloadWarning"]) { if (SEBMessageBox.Show(SEBUIStrings.reloadPage, SEBUIStrings.reloadPageMessage, MessageBoxIcon.Exclamation, MessageBoxButtons.YesNo, false) != DialogResult.Yes) { return; } SEBXULRunnerWebSocketServer.SendReloadPage(); } else { SEBXULRunnerWebSocketServer.SendReloadPage(); } } else { SEBXULRunnerWebSocketServer.SendReloadPage(); } } catch { } }
protected override void OnClick(EventArgs e) { try { SEBWindowHandler.BringWindowToTop( SEBWindowHandler.GetOpenWindows() .First(w => w.Key.GetProcess().GetExecutableName().Contains("xul")).Key); if ((bool)SEBSettings.settingsCurrent[SEBSettings.KeyTouchOptimized]) { if ((bool)SEBSettings.settingsCurrent[SEBSettings.KeyShowReloadWarning]) { if ( SEBMessageBox.Show(SEBUIStrings.reloadPage, SEBUIStrings.reloadPageMessage, MessageBoxIcon.Warning, MessageBoxButtons.YesNo) == DialogResult.Yes) { SEBXULRunnerWebSocketServer.SendReloadPage(); } } else { SEBXULRunnerWebSocketServer.SendReloadPage(); } } else { SEBXULRunnerWebSocketServer.SendReloadPage(); } } catch {} }
protected override void OnClick(EventArgs e) { try { SEBWindowHandler.BringWindowToTop( SEBWindowHandler.GetOpenWindows() .First(w => w.Key.GetProcess().GetExecutableName().Contains("firefox")).Key); } catch { } }