//************************************************************************* // Constructor: LabelUserSettingsDialog() // /// <summary> /// Initializes a new instance of the <see /// cref="LabelUserSettingsDialog" /> class. /// </summary> /// /// <param name="labelUserSettings"> /// The object being edited. /// </param> //************************************************************************* public LabelUserSettingsDialog ( LabelUserSettings labelUserSettings ) { Debug.Assert(labelUserSettings != null); labelUserSettings.AssertValid(); m_oLabelUserSettings = labelUserSettings; // Instantiate an object that saves and retrieves the position of this // dialog. Note that the object automatically saves the settings when // the form closes. m_oLabelUserSettingsDialogUserSettings = new LabelUserSettingsDialogUserSettings(this); InitializeComponent(); m_oVertexFont = m_oLabelUserSettings.VertexFont; usrVertexLabelMaximumLength.AccessKey = 'c'; cbxVertexLabelPosition.Populate(); m_oEdgeFont = m_oLabelUserSettings.EdgeFont; usrEdgeLabelMaximumLength.AccessKey = 'T'; m_oGroupFont = m_oLabelUserSettings.GroupFont; nudGroupLabelTextAlpha.Minimum = (Decimal)AlphaConverter.MinimumAlphaWorkbook; nudGroupLabelTextAlpha.Maximum = (Decimal)AlphaConverter.MaximumAlphaWorkbook; cbxGroupLabelPosition.Populate(); DoDataExchange(false); AssertValid(); }
//************************************************************************* // Constructor: LabelUserSettingsDialog() // /// <summary> /// Initializes a new instance of the <see /// cref="LabelUserSettingsDialog" /> class. /// </summary> /// /// <param name="labelUserSettings"> /// The object being edited. /// </param> //************************************************************************* public LabelUserSettingsDialog ( LabelUserSettings labelUserSettings ) { Debug.Assert(labelUserSettings != null); labelUserSettings.AssertValid(); m_oLabelUserSettings = labelUserSettings; m_oFont = m_oLabelUserSettings.Font; // Instantiate an object that saves and retrieves the position of this // dialog. Note that the object automatically saves the settings when // the form closes. m_oLabelUserSettingsDialogUserSettings = new LabelUserSettingsDialogUserSettings(this); InitializeComponent(); usrVertexLabelMaximumLength.AccessKey = 'c'; usrEdgeLabelMaximumLength.AccessKey = 'T'; cbxVertexLabelPosition.Populate(); nudGroupLabelTextAlpha.Minimum = (Decimal)AlphaConverter.MinimumAlphaWorkbook; nudGroupLabelTextAlpha.Maximum = (Decimal)AlphaConverter.MaximumAlphaWorkbook; cbxGroupLabelPosition.Populate(); DoDataExchange(false); AssertValid(); }