Exemplo n.º 1
0
 public ClipBoardListController(ClipBoardUserSettings SettingsProvider)
 {
     _savedItems        = new List <ClipBoardRecord>();
     _recentItems       = new List <ClipBoardRecord>();
     _settings          = SettingsProvider;
     _maxCopyTextLength = _settings.MaxCopyTextLength;
 }
Exemplo n.º 2
0
 public ClipBoardConfigurator(ClipBoardUserSettings Settings, bool SaveOnExit = false)
 {
     InitForm();
     _settings = Settings;
     propertyGrid1.SelectedObject = _settings;
     propertyGrid1.Enabled        = true;
 }
Exemplo n.º 3
0
        public MainForm()
        {
            InitializeComponent();
            list = this.listView;
            this.FormBorderStyle   = FormBorderStyle.None;
            _persistenceController = new CsvPersistenceController();
            _settings = new ClipBoardUserSettings(_settingsFile);
            _settings.SettingsSaving             += SettingsSaving;
            _listController                       = new ClipBoardListController(_settings);
            this.MouseDown                       += new MouseEventHandler(Form_MouseDown);
            this.labelClipBoardManager.MouseDown += new MouseEventHandler(Form_MouseDown);
            _ClipboardViewerNext                  = ClipBoard.Win32Hooks.SetClipboardViewer(this.Handle);
            maxCopyTextLength                     = _settings.MaxCopyTextLength;
            HandleStartupSetting(_settings.RunOnStartup);
            keyboardHook = new Hook("Global Action Hook");
            keyboardHook.KeyDownEvent += KeyDownHandler;

            if (_settings.StartMinimized)
            {
                hideScreen();
            }
        }