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);
     }
 }
示例#2
0
        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;
            }
        }
示例#3
0
 public ServiceContainerControl(Size size, Point location,
                                ServiceForm parent) : this(null, size, location, parent)
 {
 }