Пример #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello Adapter Pattern!");

            //MotorolaRadioTest();

            //HyteriaRadioTest();

            IRadioAdapter radioAdapter = new HyteraRadioAdapter2();

            radioAdapter.Send("Hello World!", 10);

            radioAdapter = new MotorolaRadioAdapter2("1234");

            radioAdapter.Send("Hello .NET", 25);

            IReportService reportService = new ReporingServicesService();

            reportService.Generate("raport1.rdlc", "raport1.pdf");


            reportService = new CrystalReportsService("user", "pass");
            reportService.Generate("raport1.rpt", "raport1.pdf");


            CrystalReportTest();
        }
Пример #2
0
        private static void MotorolaRadioAdapterTest2()
        {
            var radio = new MotorolaRadioAdapter2("1234");

            radio.Send("Hello World!", 10);
        }