Ejemplo n.º 1
0
        internal ServiceNodeHandler(TreeNode node, string serviceName, PackageNodeHandler parent)
        {
            this.IsFirstClick = true;
            this.Node         = node;
            this.ServiceName  = serviceName;

            this.PackageNodeHandler          = parent;
            this.PackageName                 = parent.Package.Name;
            this.ContractName                = parent.Package.Contract.Name;
            parent.Package.Contract.Renamed += new EventHandler(Contract_Renamed);

            //Service = service;
            //Service.Reloaded += new EventHandler(Service_Reloaded);
        }
Ejemplo n.º 2
0
 internal void DeletePackage(PackageNodeHandler packageNodeHandler)
 {
     this.Contract.DeletePackage(packageNodeHandler.Package.Name);
     this.Node.Nodes.Remove(packageNodeHandler.Node);
 }