Пример #1
0
        static void Main(string[] args)
        {
            Word myWord = new Word();

            myWord.AddInstruction("Copy");
            myWord.AddInstruction("Pasted");
            myWord.AddInstruction("Changed the Font");
            myWord.AddInstruction("Changed the color of the font");

            string[] newArray = myWord.GetMeTheArrayOfTheInstructions();

            Console.WriteLine(newArray[3]);


            //myWord.PrintInstructions();

            //myWord.ShowMeTheInstructionItemCount();
            //myWord.ShowMeTheRedoInstructionItemCount();

            //myWord.UndoInstruction();

            //myWord.ShowMeTheInstructionItemCount();
            //myWord.ShowMeTheRedoInstructionItemCount();

            //myWord.PrintRedoInstructions();

            //myWord.RedoInstruction();

            //myWord.PrintRedoInstructions();

            //Stack<string> myStackVariable = new Stack<string>();

            //myStackVariable.Push("My first value");
            //myStackVariable.Push("My second value");
            //myStackVariable.Push("My third value");
            //myStackVariable.Push("My fourth value");
            //myStackVariable.Push("My fifth value");

            //string result = myStackVariable.Pop();

            //Console.WriteLine(result);

            //foreach (var item in myStackVariable)
            //{
            //    Console.WriteLine(item);
            //}
        }