public void SetText(string text) { _history.AddAndExecuteCommand(new ReplaceTextCommand(_text, text)); }
public void DeleteItem(int index) { _history.AddAndExecuteCommand(new DeleteItemCommand(_items, index)); }