protected virtual void OnElementSelection(object sender, ElementSelectionEventArgs e) { if (ElementSelection != null) { ElementSelection(sender, e); } }
protected virtual void OnElementSelection(ElementSelectionEventArgs e) { if (ElementSelection != null) { ElementSelection(this, e); } }
private void document_ElementSelection(object sender, ElementSelectionEventArgs e) { OnElementSelection(e); if (resizeAction != null) { resizeAction.Select(document); } }
private void document_ElementSelection(object sender, ElementSelectionEventArgs e) { OnElementSelection(e); }
protected virtual void OnElementSelection(object sender, ElementSelectionEventArgs e) { if (ElementSelection != null) ElementSelection(sender, e); }
private void designer1_ElementSelection(object sender, ElementSelectionEventArgs e) { AppendLog("designer1_ElementSelection: {0}", e.ToString()); }
private void designer1_ElementSelection(object sender, ElementSelectionEventArgs e) { if (e.Elements.Count > 0) { if (e.Elements[0].GetType() == typeof(MFRectangleNode)) { MFRectangleNode RectNode = (MFRectangleNode)e.Elements[0]; ComponentWrapper comp = (ComponentWrapper)RectNode.Tag; switch (comp.ComponentType) { case ComponentTypeWrapper.Library: LibraryWrapper lib = PK.Wrapper.FindLibrary(comp.Guid); if (lib != null) { this.OnSelectionChangeEvent(lib); } break; case ComponentTypeWrapper.Feature: FeatureWrapper feat = PK.Wrapper.FindFeature(comp.Guid); if (feat != null) { this.OnSelectionChangeEvent(feat); } break; case ComponentTypeWrapper.MFAssembly: break; case ComponentTypeWrapper.MFSolution: break; case ComponentTypeWrapper.Processor: break; case ComponentTypeWrapper.OperatingSystem: break; case ComponentTypeWrapper.BuildTool: break; case ComponentTypeWrapper.ISA: break; case ComponentTypeWrapper.BuildParameter: break; case ComponentTypeWrapper.LibraryCategory: LibraryCategoryWrapper libcat = PK.Wrapper.FindLibraryCategory(comp.Guid); if (libcat != null) { this.OnSelectionChangeEvent(libcat); } break; case ComponentTypeWrapper.Unknown: break; default: break; } } } }