Example #1
0
        public override void UpdateSettings()
        {
            base.UpdateSettings();

            CompositeVObject castedObj = (CompositeVObject)base.ActualVObject;

            castedObj.MultipleVObjectsTransformationEnabled = VObjectsUtils.GetBoolDesignerProperty(base.VObjectHost, DesignerSettingsConstants.MultipleVObjectsTransformationEnabled, castedObj.MultipleVObjectsTransformationEnabled);
        }
Example #2
0
        private void ProcessSelectionRectangle()
        {
            Layer currentLayer = _objectHost.CurrentLayer;

            IVObject[] objects = currentLayer.Find(_objectHost.HostViewer.ControlToWorkspace(this.SelectionRectangle, Aurigma.GraphicsMill.Unit.Point), false);
            if (objects.Length == 1)
            {
                _objectHost.CurrentDesigner = objects[0].Designer;
            }
            else if (objects.Length > 1)
            {
                CompositeVObject groupObj = new CompositeVObject(objects);
                _objectHost.CurrentDesigner = groupObj.Designer;
            }
        }
Example #3
0
        public override void NotifyDisconnect()
        {
            CompositeVObject compositeObj = (CompositeVObject)base.ActualVObject;

            compositeObj.EnableChangesTracking(false);

            try
            {
                foreach (IVObject child in CompositeVObject.Children)
                {
                    child.Update();
                }
            }
            finally
            {
                compositeObj.EnableChangesTracking(true);
            }

            base.NotifyDisconnect();
        }