Exemplo n.º 1
0
        protected override void Initialize(bool initData)
        {
            base.Initialize(initData);

            if (initData)
            {
                _baseController = new ColorProviderBaseController()
                {
                    UseDocumentCopy = UseDocument.Directly
                };
                _baseController.InitializeDocument(_doc);
                _baseController.MadeDirty += EhBaseControllerChanged;
            }
            if (null != _view)
            {
                _baseController.ViewObject = _view.BaseView;

                _view.Hue0        = _doc.Hue0;
                _view.Hue1        = _doc.Hue1;
                _view.Saturation0 = _doc.Saturation0;
                _view.Saturation1 = _doc.Saturation1;
                _view.Brightness0 = _doc.Brightness0;
                _view.Brightness1 = _doc.Brightness1;
                _view.Opaqueness0 = _doc.Opaqueness0;
                _view.Opaqueness1 = _doc.Opaqueness1;
            }
        }
        protected override void Initialize(bool initData)
        {
            base.Initialize(initData);

            if (initData)
            {
                _baseController = new ColorProviderBaseController()
                {
                    UseDocumentCopy = UseDocument.Directly
                };
                _baseController.InitializeDocument(_doc);
                _baseController.MadeDirty += EhBaseControllerChanged;
            }
            if (null != _view)
            {
                _baseController.ViewObject = _view.BaseView;

                _view.Gamma      = _doc.Gamma;
                _view.Brightness = _doc.Brightness;
            }
        }