Esempio n. 1
0
        public DiagramFretLabel NewFretLabel(FretLabelPosition position, string text)
        {
            DiagramFretLabel fretLabel = new DiagramFretLabel(this, position, text);

            _fretLabels.Add(fretLabel);
            return(fretLabel);
        }
Esempio n. 2
0
        internal DiagramFretLabel NewFretLabel(XmlReader xmlReader)
        {
            DiagramFretLabel fretLabel = new DiagramFretLabel(this, xmlReader);

            _fretLabels.Add(fretLabel);
            return(fretLabel);
        }
Esempio n. 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);
        }