Esempio n. 1
0
        static void Main(string[] args)
        {
            //Adapter Design Pattern in C#
            Console.WriteLine("Setting input for DVI Monitor");
            VGAGraphicCard         vGAGraphicCard         = new VGAGraphicCard();
            DVIMonitor             dVIMonitor             = new DVIMonitor();
            VGAGraphicsCardAdapter vGAGraphicsCardAdapter = new VGAGraphicsCardAdapter(vGAGraphicCard);

            dVIMonitor.setInput(vGAGraphicsCardAdapter.GetDVIStream());
            Console.ReadLine();
        }
Esempio n. 2
0
 public VGAGraphicsCardAdapter(VGAGraphicCard vGAGraphicCard)
 {
     _vGAGraphicCard = vGAGraphicCard;
 }