public void Erase() { Command command = new WordProcessorCommand(this.word, 2, (char)0); command.Execute(); commands.Push(command); }
public void Write(char letter) { Command command = new WordProcessorCommand(this.word, 1, letter); command.Execute(); this.commands.Push(command); }