public override void UpdateSettings() { base.UpdateSettings(); CompositeVObject castedObj = (CompositeVObject)base.ActualVObject; castedObj.MultipleVObjectsTransformationEnabled = VObjectsUtils.GetBoolDesignerProperty(base.VObjectHost, DesignerSettingsConstants.MultipleVObjectsTransformationEnabled, castedObj.MultipleVObjectsTransformationEnabled); }
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; } }
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(); }