public bool OnBeforePopup(IWebBrowser c_web, string sourceUrl, string targetUrl, ref int x, ref int y, ref int width, ref int height) { if (targetUrl.Contains("create#instanceId") == false && Properties.Settings.Default.ctrlsetting == 0 && targetUrl.Contains("pages") == true || targetUrl.Contains("create#instanceId") == false && Properties.Settings.Default.ctrlsetting == 0 && targetUrl.Contains("numbers") == true || targetUrl.Contains("create#instanceId") == false && Properties.Settings.Default.ctrlsetting == 0 && targetUrl.Contains("keynote") == true) { Application.Current.Dispatcher.Invoke(new Action(() => { DelayAction(500, new Action(() => { pressenter(); })); DelayAction(600, new Action(() => { var popupmain = new popupmain(targetUrl); popupmain.Show(); })); })); return(true); } else { return(false); } }
public bool OnBeforePopup(IWebBrowser c_web, string sourceUrl, string targetUrl, ref int x, ref int y, ref int width, ref int height) { if (targetUrl.Contains("create#instanceId") == false && Properties.Settings.Default.ctrlsetting == 0 && targetUrl.Contains("pages") == true || targetUrl.Contains("create#instanceId") == false && Properties.Settings.Default.ctrlsetting == 0 && targetUrl.Contains("numbers") == true || targetUrl.Contains("create#instanceId") == false && Properties.Settings.Default.ctrlsetting == 0 && targetUrl.Contains("keynote") == true) { Application.Current.Dispatcher.Invoke(new Action(() => { DelayAction(500, new Action(() => { pressenter(); })); DelayAction(600, new Action(() => { var popupmain = new popupmain(targetUrl); popupmain.Show(); })); })); return true; } else { return false; } }