private void BaseControl_ActionLayoutActivated(object sender, VectorDraw.Professional.vdPrimaries.vdLayout deactivated, VectorDraw.Professional.vdPrimaries.vdLayout activated) { VectorDraw.Professional.vdCollections.vdSelection gripset = vdScrollableControl1.BaseControl.ActiveDocument.Selections.FindName("VDGRIPSET_" + activated.Handle.ToStringValue()); if (gripset != null) { foreach (VectorDraw.Professional.vdPrimaries.vdFigure var in gripset) { var.ShowGrips = false; } } FillPropertyGrid(vdScrollableControl1.BaseControl.ActiveDocument); vdScrollableControl1.BaseControl.ReFresh(); }
protected override void OnActivated(EventArgs e) { base.OnActivated(e); MainForm parent = this.MdiParent as MainForm; if (parent == null) { return; } parent.commandLine.SelectDocument(this.vdScrollableControl1.BaseControl.ActiveDocument); VectorDraw.Professional.vdCollections.vdSelection gripset = vdScrollableControl1.BaseControl.ActiveDocument.Selections.FindName("VDGRIPSET_" + vdScrollableControl1.BaseControl.ActiveDocument.ActiveLayOut.Handle.ToStringValue()); if (gripset != null && gripset.Count > 0) { FillPropertyGrid(gripset); } else { FillPropertyGrid(this.vdScrollableControl1.BaseControl.ActiveDocument); } }
private void BaseControl_GripSelectionModified(object sender, VectorDraw.Professional.vdPrimaries.vdLayout layout, VectorDraw.Professional.vdCollections.vdSelection gripSelection) { if (gripSelection.Count == 0) { FillPropertyGrid(vdScrollableControl1.BaseControl.ActiveDocument); } else { FillPropertyGrid(gripSelection); } }