Beispiel #1
0
 private void ExecuteCommand(ref int iChar)
 {
     foreach (Range r in range.GetSubRanges(false))
     {
         ts.CurrentTB.Selection = r;
         UndoableCommand c = cmd.Clone();
         c.Execute();
         if (ts.CurrentTB.Selection.End.iChar > iChar)
         {
             iChar = ts.CurrentTB.Selection.End.iChar;
         }
         commandsByRanges.Add(c);
     }
 }
Beispiel #2
0
 public MultiRangeCommand(UndoableCommand command) : base(command.ts)
 {
     cmd   = command;
     range = ts.CurrentTB.Selection.Clone();
 }