示例#1
0
 /// <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");
     }
 }
示例#2
0
 /// <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");
     }
 }