public static void AddHotKey(XBrowser form, Action function, Keys key, bool ctrl = false, bool shift = false, bool alt = false) { form.KeyPreview = true; form.KeyDown += delegate(object sender, KeyEventArgs e) { if (e.IsHotkey(key, ctrl, shift, alt)) { function(); } }; }
public void AddNewBrowser(string url) { XBrowser X = new XBrowser(this, url); if (XDock.DocumentStyle == DocumentStyle.SystemMdi) { X.MdiParent = this; X.Show(); } else { X.Show(XDock); } }
public ChromiumWebBrowser AddNewBrowserTab(string url) { return((ChromiumWebBrowser)this.Invoke((Func <ChromiumWebBrowser>) delegate { XBrowser xyz = new XBrowser(this, url); if (XDock.DocumentStyle == DocumentStyle.SystemMdi) { xyz.MdiParent = this; xyz.Show(); } else { xyz.Show(XDock); } return xyz.Browser; })); }
public SchemeHandler(XBrowser form) { myForm = form; }
public static void AddHotKey(XBrowser form, Action function, Keys key, bool ctrl = false, bool shift = false, bool alt = false) { //Utils.AddHotKey(form, function, key, ctrl, shift, alt); //Hotkeys.Add(new SharpHotKey(form, function, key, ctrl, shift, alt)); }
public ScreenShot(XBrowser b) { myBrowser = b; }
internal AutomationHandler(XBrowser form) { MyBrowser = form; }