internal TempoDataField(TempoField field) : base(field) { switchDataField = new BooleanDataField(field.SwitchField); numericDataField = new NumericDataField(field.NumericField); musicalNoteDataField = new EnumDataField(field.MusicalNoteField); switchDataField.PropertyChanged += HandleSwitchPropertyChanged; numericDataField.PropertyChanged += HandleNumericPropertyChanged; musicalNoteDataField.PropertyChanged += HandleMusicalNotePropertyChanged; }
internal override void Save(DataSegment segment) { SwitchDataField.Save(segment); NumericDataField.Save(segment); MusicalNoteDataField.Save(segment); }
internal TempoDataField(TempoField field) : base(field) { switchDataField = new BooleanDataField(field.SwitchField); numericDataField = new NumericDataField(field.NumericField); musicalNoteDataField = new EnumDataField(field.MusicalNoteField); }
internal override IEnumerable <DataValidationError> Load(DataSegment segment) => SwitchDataField.Load(segment) .Concat(NumericDataField.Load(segment)) .Concat(MusicalNoteDataField.Load(segment));