Example #1
0
 public DiagramItem()
 {
     _name                  = String.Empty;
     _nameSpace             = String.Empty;
     _minOccurrence         = -1;
     _maxOccurrence         = -1;
     _location              = new Point(0, 0);
     _childExpandButtonSize = 10;
     _depth                 = 0;
     _elementBox            = Rectangle.Empty;
     _childExpandButtonBox  = Rectangle.Empty;
     _boundingBox           = Rectangle.Empty;
     _size                  = new Size(50, 25);
     _margin                = new Size(10, 5);
     _padding               = new Size(10, 15);
     _itemType              = DiagramItemType.element;
     _childElements         = new List<DiagramItem>();
 }
Example #2
0
 public DiagramItem()
 {
     _name                  = String.Empty;
     _nameSpace             = String.Empty;
     _minOccurrence         = -1;
     _maxOccurrence         = -1;
     _location              = new Point(0, 0);
     _childExpandButtonSize = 10;
     _depth                 = 0;
     _elementBox            = Rectangle.Empty;
     _childExpandButtonBox  = Rectangle.Empty;
     _boundingBox           = Rectangle.Empty;
     _size                  = new Size(50, 25);
     _margin                = new Size(10, 5);
     _padding               = new Size(10, 15);
     _itemType              = DiagramItemType.element;
     _childElements         = new List <DiagramItem>();
 }