Пример #1
0
 public override void Decorate(ITurbineEngineComponent reheat)
 {
     if (reheat is ReheatChamber)
     {
         Reheat = reheat as ReheatChamber;
         Reheat.Disengage();
         return;
     }
     throw new ArgumentException("ReheatDecorator.Decorate", nameof(reheat));
 }
Пример #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));
 }
Пример #3
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));
 }
Пример #4
0
 public abstract void Decorate(ITurbineEngineComponent component);
Пример #5
0
 public abstract void Decorate(ITurbineEngineComponent component);
Пример #6
0
 public override void Decorate(ITurbineEngineComponent reheat)
 {
     if (reheat is ReheatChamber)
     {
         Reheat = reheat as ReheatChamber;
         Reheat.Disengage();
         return;
     }
     throw new ArgumentException("ReheatDecorator.Decorate", nameof(reheat));
 }
 public virtual void Decorate(ITurbineEngineComponent component = null)
 {
     Console.WriteLine("Customising Engine (TurbineEngine.Decorate)");
 }
 public virtual void Decorate(ITurbineEngineComponent component = null)
 {
     Console.WriteLine("Customising Engine (TurbineEngine.Decorate)");
 }