public void Draw(Point location, NoteShape shape) { Picture = new PictureBox(); Picture.Image = _noteShapes[(int)shape]; Picture.Location = location; Picture.BackColor = Color.Transparent; Picture.SizeMode = PictureBoxSizeMode.AutoSize; }
public Note(string pitch, NoteAccidental accidental, Point location, NoteShape shape) : this(pitch, accidental) { Draw(location, shape); }