예제 #1
0
파일: Program.cs 프로젝트: vnarozhnyi/ITVDN
        static void Main(string[] args)
        {
            Documents document = new Documents("Contract");

            document.Body   = "Contract body...";
            document.Footer = "Director: I. Ivanov";

            document.Show();


            Console.WriteLine(new string('-', 50));


            Redactor redactor = new Redactor();

            redactor.ChooseDocument("file.txt");

            redactor.Open();
            redactor.Change();
            redactor.Save();


            Console.WriteLine(new string('-', 50));


            Player player = new Player();

            player.Play();
            (player as IPlayable).Stop();

            player.Record();
            (player as IRecodable).Stop();

            Console.ReadKey();
        }