public void FillNote(SharpNoteEnum note, Brush brush) { var notes = Keys.FindAll(x => x.GetNoteAsString() == note.ToString()); notes.ForEach(x => x.Fill(brush, this)); }
public PianoKey GetKey(SharpNoteEnum note, short octave) { return(Keys.Find(x => x.GetNoteAsString() == note.ToString() && x.Octave == octave)); }
public PianoKey[] GetNotes(SharpNoteEnum note) { return(Keys.FindAll(x => x.GetNoteAsString() == note.ToString()).ToArray()); }
public SharpPianoKey(Rectangle rectangle, SharpNoteEnum snote, short octave) : base(rectangle, octave) { this.SharpNote = snote; this.FillColor = Brushes.Black; this.BaseFillColor = FillColor; }