public ServiceObjectControl(ServiceObjectControl serviceContainerParent, Size size, Point location, ServiceForm parent) { this.state_ = TextServiceState.ServiceNotObtained; this.BackColor = Color.Beige; this.label = string.Empty; this.Size = size; this.Location = location; this.parent = parent; if (serviceContainerParent == null) { serviceContainer = new ServiceContainer(); } else { serviceContainer = new ServiceContainer(serviceContainerParent.serviceContainer); } }
public ServiceContainerControl(IServiceContainer ParentServiceContainer, Size size, Point location, ServiceForm parent) { this.state_ = TextServiceState.ServiceNotObtained; localServices = new SortedList(); localServiceTypes = new SortedList(); this.BackColor = Color.Beige; this.label = string.Empty; this.Size = size; this.Location = location; this.parent = parent; this.serviceParent = ParentServiceContainer; // If a parent is specified, set the parent property of this // linkable IServiceContainer implementation. if (ParentServiceContainer != null) { serviceParent = ParentServiceContainer; } }
public ServiceContainerControl(Size size, Point location, ServiceForm parent) : this(null, size, location, parent) { }