/// <summary> /// This method will remove a note from the list of custom notes /// </summary> public static void RemoveNote(Note note) { if (CheckNoteExists(note)) { CustomNotes.Remove(note); } else { throw new AutoplayerCustomNoteException("Trying to remove non-existent note"); } }
/// <summary> /// This method will set a new note to the value of a specified note from the list of custom notes /// </summary> public static void ChangeNote(Note note, Note newNote) { if (CheckNoteExists(note)) { CustomNotes.Remove(note); CustomNotes.Add(note, newNote); } else { throw new AutoplayerCustomNoteException("Trying to modify non-existent note"); } }