コード例 #1
0
        public void Erase()
        {
            Command command = new WordProcessorCommand(this.word, 2, (char)0);

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

            command.Execute();
            this.commands.Push(command);
        }