示例#1
0
 protected virtual void OnElementSelection(object sender, ElementSelectionEventArgs e)
 {
     if (ElementSelection != null)
     {
         ElementSelection(sender, e);
     }
 }
示例#2
0
 protected virtual void OnElementSelection(ElementSelectionEventArgs e)
 {
     if (ElementSelection != null)
     {
         ElementSelection(this, e);
     }
 }
示例#3
0
 private void document_ElementSelection(object sender, ElementSelectionEventArgs e)
 {
     OnElementSelection(e);
     if (resizeAction != null)
     {
         resizeAction.Select(document);
     }
 }
示例#4
0
		private void document_ElementSelection(object sender, ElementSelectionEventArgs e)
		{
			OnElementSelection(e);
            if (resizeAction != null)
            {
                resizeAction.Select(document);
            }
		}
示例#5
0
		protected virtual void OnElementSelection(ElementSelectionEventArgs e)
		{
			if (ElementSelection != null)
			{
				ElementSelection(this, e);
			}
		}
示例#6
0
 private void document_ElementSelection(object sender, ElementSelectionEventArgs e)
 {
     OnElementSelection(e);
 }
示例#7
0
		private void document_ElementSelection(object sender, ElementSelectionEventArgs e)
		{
			OnElementSelection(e);
		}
示例#8
0
		protected virtual void OnElementSelection(object sender, ElementSelectionEventArgs e)
		{
			if (ElementSelection != null)
				ElementSelection(sender, e);
		}
示例#9
0
 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;
                    }
                }
            }
        }