Beispiel #1
0
        public DiagramBarre NewBarre(BarrePosition position)
        {
            DiagramBarre barre = new DiagramBarre(this, position);

            _barres.Add(barre);
            return(barre);
        }
Beispiel #2
0
        internal DiagramBarre NewBarre(XmlReader xmlReader)
        {
            DiagramBarre barre = new DiagramBarre(this, xmlReader);

            _barres.Add(barre);
            return(barre);
        }
Beispiel #3
0
        public Diagram Clone()
        {
            Diagram clone = new Diagram(Style.Parent, NumStrings, NumFrets)
            {
                Title = Title
            };

            clone.Style.CopyFrom(Style);

            foreach (DiagramMark mark in Marks)
            {
                DiagramMark clonedMark = clone.NewMark(mark.Position, mark.Text);
                clonedMark.Style.CopyFrom(mark.Style);
                clonedMark.Type = mark.Type;
            }

            foreach (DiagramBarre barre in Barres)
            {
                DiagramBarre clonedBarre = clone.NewBarre(barre.Position);
                clonedBarre.Style.CopyFrom(barre.Style);
            }

            foreach (DiagramFretLabel fretLabel in FretLabels)
            {
                DiagramFretLabel clonedFretLabel = clone.NewFretLabel(fretLabel.Position, fretLabel.Text);
                clonedFretLabel.Style.CopyFrom(fretLabel.Style);
            }

            return(clone);
        }