Exemplo n.º 1
0
        public static void test1()
        {
            IComputer computer = new ThinkpadComputer();
            ISDCard   sdCard   = new SDCardImpl();

            Console.WriteLine(computer.ReadSD(sdCard));
        }
Exemplo n.º 2
0
        public static void test2( )
        {
            IComputer computer = new ThinkpadComputer();
            ISDCard   sdCard   = new SDCardImpl();

            Console.WriteLine(computer.ReadSD(sdCard));
            Console.WriteLine("====================================");
            ITFCard tfCard          = new TFCardImpl();
            ISDCard tfCardAdapterSD = new SDAdapterTF(tfCard);

            Console.WriteLine(computer.ReadSD(tfCardAdapterSD));
        }