public PinnedManager(IClipboardFormatsManager formatsManager, IClipboardObjectsManager clipboardObjectsManager, IClipboardObjectManager clipboardObjectManager, IAppDataManager appDataManager)
        {
            if (pinnedTriggerType == null)
            {
                pinnedTriggerType = new CustomClipboardTriggerType("Pinned", "PinIcon");
            }

            this.formatsManager          = formatsManager;
            this.clipboardObjectsManager = clipboardObjectsManager;
            this.clipboardObjectManager  = clipboardObjectManager;

            directory = appDataManager.RoamingPath + "Pins";
        }
        public FormatFiltersProvider(IClipboardFormatsManager formatsManager)
        {
            filters = new List <Filter>();

            foreach (var category in formatsManager.Values.Select(f => f.Category).Distinct())
            {
                filters.Add(new CategoryFilter(category));
            }

            foreach (var format in formatsManager.Values)
            {
                filters.Add(new FormatFilter(format));
            }
        }