public PositionalComponent(ComponentType type,
                            ComponentConfiguration configuration,
                            Point location)
     : base(type, configuration)
 {
     Layout = new LayoutInformation(location);
 }
Пример #2
0
 public Component(ComponentType type, ComponentConfiguration configuration)
 {
     Type          = type;
     Configuration = configuration;
     Properties    = new DependentDictionary <PropertyName, PropertyValue>(type.PropertyNames, p => new PropertyValue(), allowOther: true);
     Connections   = new DependentDictionary <ConnectionName, NamedConnection>(type.ConnectionNames,
                                                                               cn => new NamedConnection(cn, this));
 }