コード例 #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
ファイル: microvawe.cs プロジェクト: 4in4in/practice4
 public microvawe(drive drive, power power, notification notification)
 {
     this.drive        = drive;
     this.power        = power;
     this.notification = notification;
 }