mCleaner.Logics.Commands.CommandLogic_Clipboard.Enqueue C# (CSharp) Method

Enqueue() public method

public Enqueue ( bool apply = false ) : void
apply bool
return void
        public void Enqueue(bool apply = false)
        {
            this._apply = apply;

            SEARCH search = (SEARCH)StringEnum.Parse(typeof(SEARCH), Action.search);

            switch (search)
            {
                case SEARCH.clipboard_clear:
                    // enqueue file for deletion
                    Worker.I.EnqueTTD(new Model_ThingsToDelete()
                    {
                        WhatKind = THINGS_TO_DELETE.system,
                        command = COMMANDS.clipboard,
                        search = SEARCH.clipboard_clear,
                        level = Action.parent_option.level,
                        cleaner_name = Action.parent_option.label
                    });

                    break;
            }
        }