protected override void Initialize(bool initData) { base.Initialize(initData); if (initData) { _baseController = new MultiLineLabelFormattingBaseController() { UseDocumentCopy = UseDocument.Directly }; _baseController.InitializeDocument(_doc); _textBlockAlignmentChoices = new SelectableListNodeList(_doc.TextBlockAlignment); } if (null != _view) { _baseController.ViewObject = _view.MultiLineLabelFormattingBaseView; _view.FormatString = _doc.FormatString; } }
protected override void Initialize(bool initData) { base.Initialize(initData); if (initData) { _baseController = new MultiLineLabelFormattingBaseController() { UseDocumentCopy = UseDocument.Directly }; _baseController.InitializeDocument(_doc); _timeConversionChoices = new SelectableListNodeList(_doc.LabelTimeConversion); } if (null != _view) { _baseController.ViewObject = _view.MultiLineLabelFormattingBaseView; _view.InitializeTimeConversion(_timeConversionChoices); _view.FormattingString = _doc.FormattingString; _view.ShowAlternateFormattingOnMidnight = _doc.ShowAlternateFormattingAtMidnight; _view.ShowAlternateFormattingOnNoon = _doc.ShowAlternateFormattingAtNoon; _view.FormattingStringAlternate = _doc.FormattingStringAlternate; } }
public override IEnumerable <ControllerAndSetNullMethod> GetSubControllers() { yield return(new ControllerAndSetNullMethod(_baseController, () => _baseController = null)); }