コード例 #1
0
        /// <summary>
        /// Sets the value of this control; either via an EnumState, or using the FIXatdl '{NULL}' value.
        /// </summary>
        /// <param name="newValue">Value that reflects which checkboxes are selected.</param>
        public override void SetValue(object newValue)
        {
            if (_value == null)
            {
                throw ThrowHelper.New <InternalErrorException>(this, InternalErrors.UnexpectedNullReference, "_value",
                                                               "Atdl4net.Model.Types.Support.EnumState");
            }

            if (newValue == null || newValue as string == Atdl.NullValue)
            {
                _value.ClearAll();
            }
            else
            {
                _value.UpdateFrom(newValue as EnumState);
            }
        }