예제 #1
0
파일: Program.cs 프로젝트: 4in4in/practice4
        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();
        }
예제 #2
0
 public microvawe(drive drive, power power, notification notification)
 {
     this.drive        = drive;
     this.power        = power;
     this.notification = notification;
 }