/// <summary> /// Constructor to instantiate a new instance of the class /// </summary> /// <param name="ctl">The control object to map</param> /// <param name="propName">The property name</param> /// <param name="isReadOnly">Whether the control is read only. /// If so, it then becomes disabled. If not, /// handlers are assigned to manage key presses, depending on the strategy assigned to this mapper.</param> /// <param name="factory">The control factory to be used when creating the controlMapperStrategy</param> protected NumericUpDownMapper(INumericUpDown ctl, string propName, bool isReadOnly, IControlFactory factory) : base(ctl, propName, isReadOnly, factory) { _numericUpDown = (INumericUpDown)ctl; _mapperStrategy = factory.CreateNumericUpDownMapperStrategy(); _mapperStrategy.ValueChanged(this); }