public override void Redo() { if (TagEdit != null) { TagEdit.Redo(); } line_.Field.IsFocused = true; line_.Field.CaretPosision = CaretPos; line_.text_ = line_.text_.Remove(CaretPos, Text.Length); line_.Field.SetTextDirectly(line_.text_); line_.CheckTagIncrementalDialog(); }
public override void Redo() { if (Text.Length == 0) { return; } line_.Field.IsFocused = true; line_.text_ = line_.text_.Insert(CaretPos, Text.ToString()); line_.Field.SetTextDirectly(line_.text_); line_.Field.CaretPosision = CaretPos + Text.Length; if (TagEdit != null) { TagEdit.Redo(); } line_.CheckTagIncrementalDialog(); }