protected override void OnLoad(EventArgs e) { base.OnLoad(e); PluginThemingUtil.EnableEffectDialogTheme(this); string path = Path.Combine(Path.GetDirectoryName(typeof(ConfigDialog).Assembly.Location), "TwainProxy.exe"); if (File.Exists(path)) { string hWnd = this.Handle.ToString(); process = Process.Start(path, hWnd); } else { if (MessageBox.Show(this, Resources.TwainProxyNotFound, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error) == System.Windows.Forms.DialogResult.OK) { base.Close(); } } this.Cursor = Cursors.AppStarting; }
protected override void OnForeColorChanged(EventArgs e) { base.OnForeColorChanged(e); PluginThemingUtil.UpdateControlForeColor(this); }