private void DicForm_Load(object sender, EventArgs e) { Keys k = Keys.D | Keys.Control | Keys.Shift; RegisterHotKey(this, k); Keys k2 = Keys.C | Keys.Control | Keys.Shift; RegisterHotKey(this, k2); string browseUrl = ConfigurationManager.AppSettings["browseUrl"]; _webBrowser = new ChromiumWebBrowser(browseUrl); JsDialogHandler jss = new JsDialogHandler(); _webBrowser.JsDialogHandler = jss; _webBrowser.Dock = DockStyle.Fill; this.panel.Controls.Add(_webBrowser); string windowWidth = ConfigurationManager.AppSettings["windowWidth"]; string windowHeight = ConfigurationManager.AppSettings["windowHeight"]; this.Size = new Size(int.Parse(windowWidth), int.Parse(windowHeight)); notifyIcon.ShowBalloonTip(5000); }
private void SpellCheckForm_Load(object sender, EventArgs e) { string browseUrl = ConfigurationManager.AppSettings["spell_browseUrl"]; _webBrowser = new ChromiumWebBrowser(browseUrl); JsDialogHandler jss = new JsDialogHandler(); _webBrowser.JsDialogHandler = jss; _webBrowser.Dock = DockStyle.Fill; this.panel.Controls.Add(_webBrowser); string windowWidth = ConfigurationManager.AppSettings["spell_windowWidth"]; string windowHeight = ConfigurationManager.AppSettings["spell_windowHeight"]; this.Size = new Size(int.Parse(windowWidth), int.Parse(windowHeight)); }