/// <summary> /// Loads this control with any supplied InitValue. If InitValue is not supplied, then control value will /// be set to default/empty value. /// </summary> protected override void LoadDefaultFromInitValue() { _value = new EnumState(ListItems.EnumIds); if (InitValue != null) { _value.LoadInitValue(InitValue, IsNonEnumValueAllowed); } }
/// <summary> /// Attempts to load the supplied FIX field value into this control. /// </summary> /// <param name="value">Value to set this control to.</param> /// <returns>true if it was possible to set the value of this control using the supplied value; false otherwise.</returns> /// <remarks>Although the method name might suggest that value is a FIX wire value, for list controls, this /// parameter is in fact an enumID.</remarks> protected override bool LoadDefaultFromFixValue(string value) { if (string.IsNullOrEmpty(value)) { return(false); } _value = new EnumState(ListItems.EnumIds); _value.LoadInitValue(value, IsNonEnumValueAllowed); return(true); }