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; }
public void AddType(UIComplexType uiComplexType, Point position) { AddType(new ComplexTypeDesigner(uiComplexType), position, uiComplexType); }
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; }
public ComplexTypeDesigner(UIComplexType complexType) : base(complexType) { ComplexType = complexType; }