/// <summary> /// Creates a new StaffFlashcardGenerator. /// </summary> /// <param name="staffs">This flags value indicates which staffs to include.</param> public StaffFlashcardGenerator(StaffFlashcardGeneratorArgs args) { if (args.Staffs == 0) throw new ArgumentException("Need at least one Staff to construct a staff flashcard generator."); if (args.Accidentals == 0) throw new ArgumentException("Need at least one accidental type to construct a staff flashcard generator."); Staffs = args.Staffs; Accidentals = args.Accidentals; }
/// <summary> /// Creates a new SingleNoteFlashcardGenerator. /// </summary> /// <param name="staffs">This flags value indicates which staffs to include.</param> public SingleNoteFlashcardGenerator(StaffFlashcardGeneratorArgs args) : base(args) { }