public override bool TryAddObject(ITimedObject timedObject, IBuildingContext context, ObjectsBuildingSettings settings) { if (!CanObjectsBeAdded) { return(false); } var buildingContext = (RegisteredParametersContext)context; return(TryAddTimedEvent(timedObject as TimedEvent, buildingContext)); }
public override bool TryAddObject(ITimedObject timedObject, IBuildingContext context, ObjectsBuildingSettings settings) { if (!CanObjectsBeAdded) { return(false); } return(TryAddTimedEvent(timedObject as TimedEvent, settings) || TryAddNote(timedObject as Note, settings) || TryAddChord(timedObject as Chord)); }
public override bool TryAddObject(ITimedObject timedObject, IBuildingContext context, ObjectsBuildingSettings settings) { if (IsCompleted) { return(false); } return(TryAddTimedEvent(timedObject as TimedEvent) || TryAddNote(timedObject as Note) || TryAddChord(timedObject as Chord) || TryAddRegisteredParameter(timedObject as RegisteredParameter)); }
public ValueDepthBuilderVisitor(IBuildingContext context) : base(context) { }
public abstract bool TryAddObject(ITimedObject timedObject, IBuildingContext context, ObjectsBuildingSettings settings);
public BuilderVisitor(IBuildingContext context) { this.Context = context; }
public StatementDepthBuilderVisitor(IBuildingContext context) : base(context) { }
public ExpressionDepthBuilderVisitor(IBuildingContext context) : base(context) { }