private void ExecuteCommand(ref int iChar) { foreach (var r in range.GetSubRanges(false)) { ts.CurrentTB.Selection = r; var c = cmd.Clone(); c.Execute(); if (ts.CurrentTB.Selection.End.iChar > iChar) { iChar = ts.CurrentTB.Selection.End.iChar; } commandsByRanges.Add(c); } }
private void ExecuteCommand(ref int iChar) { foreach (var r in _range.GetSubRanges(false)) { Ts.CurrentTb.Selection = r; var c = _cmd.Clone(); c.Execute(); if (Ts.CurrentTb.Selection.End.IChar > iChar) { iChar = Ts.CurrentTb.Selection.End.IChar; } _commandsByRanges.Add(c); } }