Esempio n. 1
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            // Reload user settings
            settings.Reload();
            chkAlwaysOnTop.Checked = settings.AlwaysOnTop;
            if (settings.SplitterDistance > -1)
            {
                splitMain.SplitterDistance = settings.SplitterDistance;
            }

            // Give focus to the list of formats by default
            lstFormats.Focus();

            // Load the list of plugins
            string[] dirs = settings.PluginDirectories.Split('|').Select(a => a.Replace("=", Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath))).ToArray();
            plugins.LoadPlugins(dirs);

            // Create, activate, and listen to the clipboard change notifications
            clipChange = new ClipboardChangeNotifier();
            clipChange.ClipboardChanged += new EventHandler(clipChange_ClipboardChanged);
            clipChange.AssignHandle(this.Handle);
            clipChange.Install();
        }
Esempio n. 2
0
        private void frmMain_Load(object sender, EventArgs e)
        {
            // Reload user settings
            settings.Reload();
            chkAlwaysOnTop.Checked = settings.AlwaysOnTop;
            if (settings.SplitterDistance > -1) splitMain.SplitterDistance = settings.SplitterDistance;

            // Give focus to the list of formats by default
            lstFormats.Focus();

            // Load the list of plugins
            string[] dirs = settings.PluginDirectories.Split('|').Select(a => a.Replace("=", Path.GetDirectoryName(System.Windows.Forms.Application.ExecutablePath))).ToArray();
            plugins.LoadPlugins(dirs);

            // Create, activate, and listen to the clipboard change notifications
            clipChange = new ClipboardChangeNotifier();
            clipChange.ClipboardChanged += new EventHandler(clipChange_ClipboardChanged);
            clipChange.AssignHandle(this.Handle);
            clipChange.Install();
        }