Beispiel #1
0
 public void FinalWindows(FacadeComputer facade)
 {
     facade.DiskC();
     facade.DiskD();
     facade.System();
     facade.Windows("Windwos 10");
 }
Beispiel #2
0
        static void Main(string[] args)
        {
            Console.WriteLine("---------------------------------");
            Console.WriteLine("Subsistems Computer");
            Console.WriteLine("---------------------------------");
            HDD      hdd = new HDD(1000, "Toshiba");
            SSD      ssd = new SSD(128, "Samsung");
            Procesor pro = new Procesor("Intel Core(TM) I7", "7700HQ");

            FacadeComputer comp  = new FacadeComputer(hdd, ssd, pro);
            Administrator  admin = new Administrator();

            admin.FinalWindows(comp);

            //comp.OS = OS.GetInstance("Windows 7");
            //Console.WriteLine(comp.OS.Name);

            Console.ReadLine();
        }