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

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

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