Пример #1
0
 public ServiceBase(int id, string name, string description)
 {
     this._ExposedState = ExposedServiceStateType.NonExposed;
     this._Id           = id;
     this._Name         = name;
     this._Description  = description;
     this._DCType       = new DCType(name, id, 0, string.Empty, false, false);
 }
Пример #2
0
 public void SetChildState(ExposedServiceStateType exposedStateType)
 {
     foreach (TreeNode node in this.Nodes)
     {
         ServiceTreeNode serviceTreeNode = node as ServiceTreeNode;
         serviceTreeNode.Service.ExposedState = exposedStateType;
         serviceTreeNode.UpdateNode();
         serviceTreeNode.SetChildState(exposedStateType);
     }
 }