Exemplo 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));
 }
Exemplo 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));
 }