public RestChordDrawingStrategy(Chord c, ChordBar b, ChordTuple t, IBounds bounds, VisualInfo v_info, IDelegate del) : base(c, b, t, bounds, v_info, del)
 {
 }
 public DynamicChordMouseHandler(Chord c, IBounds b, GuiCommandExecutor e, IMouseDelegate del)
     : base(e, del, b)
 {
     chord = c;
 }
示例#3
0
 public void Add(Chord chord)
 {
     ModelCollection.Add(chord);
     ModelAdded?.Invoke(this, new ObjectAddedArgs(chord, this));
 }
示例#4
0
 public void Remove(Chord chord)
 {
     ModelCollection.Remove(chord);
     ModelRemoved?.Invoke(this, new ObjectRemovedArgs(chord));
 }
示例#5
0
 public AddChordToPartVal(Part p, Measure m, Chord c)
 {
     part    = p;
     measure = m;
     chord   = c;
 }
示例#6
0
        public bool chordMatchesFirst(Chord chord)
        {
            Chord other = (ChordNodes?.FirstOrDefault()?.BaseObject as Chord) ?? null;

            return((other == null) ? false : other.Equals(chord));
        }
示例#7
0
 public ChangeChordLengthVal(Measure m, Chord c, Length l)
 {
     measure = m;
     chord   = c;
     length  = l;
 }
示例#8
0
 public AddChordToMeasureVal(Chord c, Measure m)
 {
     chord   = c;
     measure = m;
 }
示例#9
0
 public RemoveChordFromMeasureVal(Measure m, Chord c)
 {
     measure = m;
     chord   = c;
 }
示例#10
0
 public AddChordToMeasureCom(Measure m, Chord c)
 {
     measure = m;
     chord   = c;
 }
示例#11
0
 public ChangeChordPositionCom(Chord c, int p)
 {
     chord    = c;
     position = p;
 }
示例#12
0
 public AddRestChordToPartAtr(CommandSelections selection)
 {
     Part    = selection.SelectedPart;
     Measure = genMeasure(selection);
     Chord   = genChord(selection);
 }
示例#13
0
        public Chord genChord(CommandSelections selection)
        {
            var length = Length.createInstance(selection.SelectedLength, selection.TupletType);

            return(Chord.createInstance(selection.Position, Measure?.Position, length));
        }