private void DrawComplexPropertyRelationAfterAddedComplexProperty(UIComplexType uiComplexType, UIRelatedProperty uiComplexProperty)
 {
     SizeChangedEventHandler actionToDoWhenNewItemAdded = null;
     actionToDoWhenNewItemAdded =
         delegate
         {
             var complexProperty = uiComplexProperty.BusinessInstance as ComplexProperty;
             if (Designer.DesignerView.ContainsEntityType(uiComplexType))
                 DrawComplexPropertyRelation(GetRelatedTypeDesigner(uiComplexProperty), uiComplexProperty);
             propertiesListView.SelectedValue = uiComplexProperty;
             GetListViewItem(complexProperty).Focus();
             propertiesListView.SizeChanged -= actionToDoWhenNewItemAdded;
         };
     propertiesListView.SizeChanged += actionToDoWhenNewItemAdded;
 }
示例#2
0
 public void AddType(UIComplexType uiComplexType, Point position)
 {
     AddType(new ComplexTypeDesigner(uiComplexType), position, uiComplexType);
 }
 public ComplexTypeDesigner(UIComplexType complexType)
     : base(complexType)
 {
     ComplexType = complexType;
 }