Wrapper for commands when MultiSelection mode enabled. This class is very like to MultiRangeCommand, but it is intended for MultiSelection mode.
Inheritance: UndoableCommand
示例#1
0
        public override void ExecuteCommand(Command cmd)
        {
            if (disabledCommands > 0)
            {
                return;
            }

            var fctb = TextSource.CurrentTB;

            if (fctb.AddedCarets.Count != 0)
            {
                //multirange ?
                if (cmd.ts.CurrentTB.Selection.ColumnSelectionMode)
                {
                    return;//we do not suppport column selection mode with multiselect mode
                }
                //make wrapper
                if (cmd is UndoableCommand)
                {
                    cmd = new MultiSelectionCommand((UndoableCommand)cmd);
                }
            }

            base.ExecuteCommand(cmd);
        }
示例#2
0
        public override void ExecuteCommand(Command cmd)
        {
            if (disabledCommands > 0)
                return;

            var fctb = TextSource.CurrentTB;
            if (fctb.AddedCarets.Count != 0)
            {
                //multirange ?
                if (cmd.ts.CurrentTB.Selection.ColumnSelectionMode)
                    return;//we do not suppport column selection mode with multiselect mode

                //make wrapper
                if (cmd is UndoableCommand)
                    cmd = new MultiSelectionCommand((UndoableCommand)cmd);
            }

            base.ExecuteCommand(cmd);
        }