Esempio n. 1
0
        public IActionValidator buildValidator()
        {
            var validator = new MultipleActionValidator();

            validator.AddValidator(new AddChordToMeasureVal(attributes.Chord, attributes.Measure));
            validator.AddValidator(new AddNoteToChordVal(attributes.Chord, attributes.Note));
            return(validator);
        }
Esempio n. 2
0
        public IActionValidator buildValidator()
        {
            var validator = new MultipleActionValidator();

            foreach (Measure measure in attributes.Measures)
            {
                validator.AddValidator(new RemoveMeasureFromPartVal(attributes.Part, measure));
            }
            return(validator);
        }
Esempio n. 3
0
        public IActionValidator buildValidator()
        {
            var validator = new MultipleActionValidator();

            foreach (Chord chord in attributes.Chords)
            {
                validator.AddValidator(new RemoveChordFromMeasureVal(attributes.Measure, chord));
            }
            return(validator);
        }
Esempio n. 4
0
        public IActionValidator buildValidator()
        {
            var validator = new MultipleActionValidator();

            foreach (Note note in attributes.Notes)
            {
                validator.AddValidator(new RemoveNoteFromChordVal(attributes.Measure, attributes.Chord, note));
            }
            return(validator);
        }