private void InternalInitialize() { _context = _doc.GetPropertyContext(); AxisStyleController = new AxisStyleController() { UseDocumentCopy = UseDocument.Directly }; AxisStyleController.MadeDirty += EhAxisStyleControllerDirty; MajorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMajorLabel, RemoveMajorLabel) { UseDocumentCopy = UseDocument.Directly }; MinorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMinorLabel, RemoveMinorLabel) { UseDocumentCopy = UseDocument.Directly }; AxisStyleController.InitializeDocument(_doc); if (_doc.AreMajorLabelsEnabled) { MajorLabelCondController.InitializeDocument(_doc.MajorLabelStyle); } if (_doc.AreMinorLabelsEnabled) { MinorLabelCondController.InitializeDocument(_doc.MinorLabelStyle); } }
private void InternalInitialize() { _context = _doc.GetPropertyContext(); AxisStyleCondController = new ConditionalDocumentController <AxisStyle>(CreateAxisStyle, RemoveAxisStyle, CreateAxisStyleController) { UseDocumentCopy = UseDocument.Directly }; MajorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMajorLabel, RemoveMajorLabel) { UseDocumentCopy = UseDocument.Directly }; MinorLabelCondController = new ConditionalDocumentController <AxisLabelStyle>(CreateMinorLabel, RemoveMinorLabel) { UseDocumentCopy = UseDocument.Directly }; if (_doc.Contains(AxisInformation.Identifier)) { var axStyle = _doc[AxisInformation.Identifier]; AxisStyleCondController.InitializeDocument(axStyle); if (axStyle.AreMajorLabelsEnabled) { MajorLabelCondController.InitializeDocument(axStyle.MajorLabelStyle); } if (axStyle.AreMinorLabelsEnabled) { MinorLabelCondController.InitializeDocument(axStyle.MinorLabelStyle); } } }
private void InternalInitialize() { _context = _doc.GetPropertyContext(); AxisStyleCondController = new ConditionalDocumentController<AxisStyle>(CreateAxisStyle, RemoveAxisStyle, CreateAxisStyleController) { UseDocumentCopy = UseDocument.Directly }; MajorLabelCondController = new ConditionalDocumentController<AxisLabelStyle>(CreateMajorLabel, RemoveMajorLabel) { UseDocumentCopy = UseDocument.Directly }; MinorLabelCondController = new ConditionalDocumentController<AxisLabelStyle>(CreateMinorLabel, RemoveMinorLabel) { UseDocumentCopy = UseDocument.Directly }; if (_doc.Contains(AxisInformation.Identifier)) { var axStyle = _doc[AxisInformation.Identifier]; AxisStyleCondController.InitializeDocument(axStyle); if (axStyle.AreMajorLabelsEnabled) MajorLabelCondController.InitializeDocument(axStyle.MajorLabelStyle); if (axStyle.AreMinorLabelsEnabled) MinorLabelCondController.InitializeDocument(axStyle.MinorLabelStyle); } }
private void InternalInitialize() { _context = _doc.GetPropertyContext(); AxisStyleController = new AxisStyleController() { UseDocumentCopy = UseDocument.Directly }; AxisStyleController.MadeDirty += this.EhAxisStyleControllerDirty; MajorLabelCondController = new ConditionalDocumentController<AxisLabelStyle>(CreateMajorLabel, RemoveMajorLabel) { UseDocumentCopy = UseDocument.Directly }; MinorLabelCondController = new ConditionalDocumentController<AxisLabelStyle>(CreateMinorLabel, RemoveMinorLabel) { UseDocumentCopy = UseDocument.Directly }; AxisStyleController.InitializeDocument(_doc); if (_doc.AreMajorLabelsEnabled) MajorLabelCondController.InitializeDocument(_doc.MajorLabelStyle); if (_doc.AreMinorLabelsEnabled) MinorLabelCondController.InitializeDocument(_doc.MinorLabelStyle); }