Esempio n. 1
0
 public override void Decorate(ITurbineEngineComponent component)
 {
     //DumpandBurn = (FuelDumper) component;
     //DumpandBurn.Disengage();
     if (component is FuelDumper)
     {
         DumpandBurn = (FuelDumper)component;
         DumpandBurn.Disengage();
         return;
     }
     throw new ArgumentException("DumpAndBurnDecorator.Decorate", nameof(component));
 }
Esempio n. 2
0
 public override void Decorate(ITurbineEngineComponent component)
 {
     //DumpandBurn = (FuelDumper) component;
     //DumpandBurn.Disengage();
     if (component is FuelDumper)
     {
         DumpandBurn = (FuelDumper)component;
         DumpandBurn.Disengage();
         return;
     }
     throw new ArgumentException("DumpAndBurnDecorator.Decorate", nameof(component));
 }