public override bool TryAddObject(ITimedObject timedObject, IBuildingContext context, ObjectsBuildingSettings settings)
        {
            if (!CanObjectsBeAdded)
            {
                return(false);
            }

            var buildingContext = (RegisteredParametersContext)context;

            return(TryAddTimedEvent(timedObject as TimedEvent, buildingContext));
        }
示例#2
0
        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));
        }
示例#3
0
        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)
 {
 }
示例#5
0
 public abstract bool TryAddObject(ITimedObject timedObject, IBuildingContext context, ObjectsBuildingSettings settings);
示例#6
0
 public BuilderVisitor(IBuildingContext context)
 {
     this.Context = context;
 }
示例#7
0
 public StatementDepthBuilderVisitor(IBuildingContext context)
     : base(context)
 {
 }
示例#8
0
 public ExpressionDepthBuilderVisitor(IBuildingContext context)
     : base(context)
 {
 }