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;
 }
Exemple #3
0
 public void Add(Chord chord)
 {
     ModelCollection.Add(chord);
     ModelAdded?.Invoke(this, new ObjectAddedArgs(chord, this));
 }
Exemple #4
0
 public void Remove(Chord chord)
 {
     ModelCollection.Remove(chord);
     ModelRemoved?.Invoke(this, new ObjectRemovedArgs(chord));
 }
Exemple #5
0
 public AddChordToPartVal(Part p, Measure m, Chord c)
 {
     part    = p;
     measure = m;
     chord   = c;
 }
Exemple #6
0
        public bool chordMatchesFirst(Chord chord)
        {
            Chord other = (ChordNodes?.FirstOrDefault()?.BaseObject as Chord) ?? null;

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

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