예제 #1
0
 protected static void Clone(DocumentState from, DocumentState to)
 {
     to._currentAlternation       = from._currentAlternation;
     to._alternationTextType      = from._alternationTextType;
     to._alternationTextExplicity = from._alternationTextExplicity;
     to._definedAlternationIndices.AppendClone(from._definedAlternationIndices);
     to._barAppeared = from._barAppeared;
     to._capos.AppendClone(from._capos);
     to._capoFretOffsets = (int[])from._capoFretOffsets?.Clone();
     to.MinimumCapoFret  = from.MinimumCapoFret;
     to._definedChords.AppendClone(from._definedChords);
     to._keySignature    = from._keySignature;
     to._timeSignature   = from._timeSignature;
     to._tempoSignature  = from._tempoSignature;
     to._tuningSignature = from._tuningSignature;
     to._rhythmTemplate  = from._rhythmTemplate;
     to._currentSection  = from._currentSection;
     to._definedSections.AppendClone(from._definedSections);
 }
예제 #2
0
 public EditableDocumentState(DocumentState state)
 {
     DocumentState.Clone(state, this);
 }