Beispiel #1
0
        protected override void Initialize(bool initData)
        {
            base.Initialize(initData);

            if (initData)
            {
                _customColorController = new NamedColorController();
                _customColorController.InitializeDocument(NamedColors.White);
            }

            if (null != _view)
            {
                if (null == _customColorController.ViewObject)
                {
                    Current.Gui.FindAndAttachControlTo(_customColorController);
                }
                ((IColorListView)_view).SetCustomColorView(_customColorController.ViewObject);
            }
        }
Beispiel #2
0
        public override IEnumerable <ControllerAndSetNullMethod> GetSubControllers()
        {
            IEnumerable <ControllerAndSetNullMethod> GetMySubControllers()
            {
                yield return(new ControllerAndSetNullMethod(_customColorController, () => _customColorController = null));
            }

            return(base.GetSubControllers().Concat(GetMySubControllers()));
        }
Beispiel #3
0
 public ColorSetController()
     : base(ColorSetManager.Instance)
 {
     _customColorController = new NamedColorController();
     Current.Gui.FindAndAttachControlTo(_customColorController);
 }