Wrapper for commands when MultiSelection mode enabled. This class is very like to MultiRangeCommand, but it is intended for MultiSelection mode.
상속: 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);
        }