Пример #1
0
        public void PersistSettings(System.Windows.Forms.Control[] settingsView)
        {
            WindowsIntegrationUI windowsIntegration = (WindowsIntegrationUI)settingsView[0];

            Settings.Default.MonitorClipboard = windowsIntegration.MonitorClipboard;
            Settings.Default.Save();

            WindowsStartupUtility.Register(windowsIntegration.StartWithWindows);
        }
Пример #2
0
        public WindowsIntegrationUI()
        {
            InitializeComponent();

            this.Text = "Windows Integration";

            chkStartWithWindows.Checked        = WindowsStartupUtility.IsRegistered();
            chkMonitorWindowsClipboard.Checked = Settings.Default.MonitorClipboard;
        }