Ejemplo n.º 1
0
            /// <summary>
            /// Вывод на экран настроек с редактора
            /// </summary>
            /// <param name="redactor">обращение к функциям интерфейса редактора</param>
            public void ClientMethod(IAbstractRedactor redactor)
            {
                var Settings = redactor.GetSettings();

                Console.WriteLine(Settings.Language());
                Console.WriteLine(Settings.Currency());
                Console.WriteLine(Settings.CodeOffTheCountry());
                Console.WriteLine(Settings.WeatherToday());
                Console.WriteLine(Settings.DateOfEstablishment());
                Console.WriteLine(Settings.PartOfTheWorld());
                Console.WriteLine(Settings.Capital());
                Console.WriteLine(Settings.Religion());
                Console.WriteLine(Settings.Population());
                Console.WriteLine(Settings.AdditionalSettings());
            }
Ejemplo n.º 2
0
            /// <summary>
            /// Процедура вывода на экран изменяемых настроек и типа файла
            /// </summary>
            /// <param name="redactor для обращения к функциям интерфейса редактора"></param>
            public void ClientMethod(IAbstractRedactor redactor)
            {
                var Settings = redactor.GetSettings();

                Console.WriteLine(Settings.WhichType());
                Console.WriteLine(Settings.SetSettings1());
                Console.WriteLine(Settings.SetSettings2());
                Console.WriteLine(Settings.SetSettings3());
                Console.WriteLine(Settings.SetSettings4());
                Console.WriteLine(Settings.SetSettings5());
                Console.WriteLine(Settings.SetSettings6());
                Console.WriteLine(Settings.SetSettings7());
                Console.WriteLine(Settings.SetSettings8());
                Console.WriteLine(Settings.SetSettings9());
                Console.WriteLine(Settings.SetSettings10());
            }