예제 #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);
        }
예제 #2
0
        public IActionValidator buildValidator()
        {
            var validator = new MultipleActionValidator();

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

            foreach (Chord chord in attributes.Chords)
            {
                validator.AddValidator(new RemoveChordFromMeasureVal(attributes.Measure, chord));
            }
            return(validator);
        }
예제 #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);
        }