示例#1
0
        public static Beat GetLastBeat(this IBeatElementContainer container)
        {
            while (container.Elements != null && container.Elements.Count > 0)
            {
                var lastElement = container.Elements[container.Elements.Count - 1];
                var firstBeat   = lastElement as Beat;
                if (firstBeat != null)
                {
                    return(firstBeat);
                }

                container = (IBeatElementContainer)lastElement;
            }

            return(null);
        }
示例#2
0
文件: Beam.cs 项目: hillinworks/tabml
 void IInternalBeatElement.SetOwner(IBeatElementContainer owner)
 {
     this.BeatElementOwner = owner;
 }
示例#3
0
文件: Beam.cs 项目: hillinworks/tabml
 internal Beam(Beam owner, BaseNoteValue beatNoteValue, Voice ownerVoice)
     : this(beatNoteValue, ownerVoice, false)
 {
     this.BeatElementOwner = owner;
 }