コード例 #1
0
        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;
            }
        }
コード例 #2
0
        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;
            }
        }
コード例 #3
0
 public override IEnumerable <ControllerAndSetNullMethod> GetSubControllers()
 {
     yield return(new ControllerAndSetNullMethod(_baseController, () => _baseController = null));
 }