public Microwave(Drive drive, Power power, Notification notification)
 {
     _drive        = drive;
     _power        = power;
     _notification = notification;
 }
        static void drive_driveevent(object sender, EventArgs e)
        {
            Drive d = (Drive)sender;

            Console.WriteLine(d.ToString());
        }
Esempio n. 3
0
 public Computer()
 {
     cpu = new Cpu();
     ram = new Ram();
     hdd = new Drive();
 }