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