Beispiel #1
0
        public override void Bind(IEditorService service)
        {
            _edSvc = service;
            _edSvc.RegisterCustomNotifier(this);
            _sym  = (ISimpleSymbolDefinition)_edSvc.GetEditedResource();
            _rbox = _sym.ResizeBox;
            try
            {
                _init = true;

                chkEnableResizeBox.Checked = (_rbox != null);
                grpResizeBox.Enabled       = chkEnableResizeBox.Checked;

                if (_rbox == null)
                {
                    _rbox = _sym.CreateResizeBox();
                }

                symGrowControl.Items = SymbolField.GetItems <GrowControl>();

                symGrowControl.Bind(_rbox, nameof(_rbox.GrowControl));
                symHeight.Bind(_rbox, nameof(_rbox.SizeY));
                symWidth.Bind(_rbox, nameof(_rbox.SizeX));
                symXCoord.Bind(_rbox, nameof(_rbox.PositionX));
                symYCoord.Bind(_rbox, nameof(_rbox.PositionY));
            }
            finally
            {
                _init = false;
            }
        }
Beispiel #2
0
        public override void Bind(IEditorService service)
        {
            _edSvc = service;
            _edSvc.RegisterCustomNotifier(this);
            _sym = (ISimpleSymbolDefinition)_edSvc.GetEditedResource();
            _rbox = _sym.ResizeBox;
            try
            {
                _init = true;

                chkEnableResizeBox.Checked = (_rbox != null);
                grpResizeBox.Enabled = chkEnableResizeBox.Checked;

                if (_rbox == null)
                    _rbox = _sym.CreateResizeBox();

                symGrowControl.Items = SymbolField.GetItems<GrowControl>();

                symGrowControl.Bind(_rbox, "GrowControl");
                symHeight.Bind(_rbox, "SizeY");
                symWidth.Bind(_rbox, "SizeX");
                symXCoord.Bind(_rbox, "PositionX");
                symYCoord.Bind(_rbox, "PositionY");
            }
            finally
            {
                _init = false;
            }
        }