ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, Object value ) { Debug.Assert(value != null); Debug.Assert(value is String); AssertValid(); GroupLabelColumnAutoFillUserSettings oGroupLabelColumnAutoFillUserSettings = new GroupLabelColumnAutoFillUserSettings(); oGroupLabelColumnAutoFillUserSettings.PrependWithGroupName = Boolean.Parse((String)value); return(oGroupLabelColumnAutoFillUserSettings); }
ConvertTo ( ITypeDescriptorContext context, CultureInfo culture, Object value, Type destinationType ) { Debug.Assert(value != null); Debug.Assert(value is GroupLabelColumnAutoFillUserSettings); Debug.Assert(destinationType == typeof(String)); AssertValid(); GroupLabelColumnAutoFillUserSettings oGroupLabelColumnAutoFillUserSettings = (GroupLabelColumnAutoFillUserSettings)value; return(oGroupLabelColumnAutoFillUserSettings .PrependWithGroupName.ToString(CultureInfo.InvariantCulture)); }
//************************************************************************* // Constructor: GroupLabelColumnAutoFillUserSettingsDialog() // /// <summary> /// Initializes a new instance of the <see /// cref="GroupLabelColumnAutoFillUserSettingsDialog" /> class. /// </summary> /// /// <param name="groupLabelColumnAutoFillUserSettings"> /// Object to edit. /// </param> //************************************************************************* public GroupLabelColumnAutoFillUserSettingsDialog ( GroupLabelColumnAutoFillUserSettings groupLabelColumnAutoFillUserSettings ) { Debug.Assert(groupLabelColumnAutoFillUserSettings != null); m_oGroupLabelColumnAutoFillUserSettings = groupLabelColumnAutoFillUserSettings; InitializeComponent(); // Instantiate an object that saves and retrieves the user settings for // this dialog. Note that the object automatically saves the settings // when the form closes. m_oGroupLabelColumnAutoFillUserSettingsDialogUserSettings = new GroupLabelColumnAutoFillUserSettingsDialogUserSettings(this); DoDataExchange(false); AssertValid(); }
ConvertFrom ( ITypeDescriptorContext context, CultureInfo culture, Object value ) { Debug.Assert(value != null); Debug.Assert(value is String); AssertValid(); GroupLabelColumnAutoFillUserSettings oGroupLabelColumnAutoFillUserSettings = new GroupLabelColumnAutoFillUserSettings(); oGroupLabelColumnAutoFillUserSettings.PrependWithGroupName = Boolean.Parse( (String)value ); return (oGroupLabelColumnAutoFillUserSettings); }