Beispiel #1
0
        static void Main()
        {
            drive        drive        = new drive();
            power        power        = new power();
            notification notification = new notification();

            microvawe microvawe = new microvawe(drive, power, notification);

            power.powerEvent += power_powerEvent;
            drive.driveEvent += drive_driveEvent;
            notification.notificationEvent += notification_notificationEvent;

            Console.WriteLine("Разморозка");
            microvawe.defrost();

            Console.WriteLine();

            Console.WriteLine("Приготовление");
            microvawe.cook();

            Console.ReadLine();
        }
Beispiel #2
0
 public microvawe(drive drive, power power, notification notification)
 {
     this.drive        = drive;
     this.power        = power;
     this.notification = notification;
 }