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); }
internal void DeletePackage(PackageNodeHandler packageNodeHandler) { this.Contract.DeletePackage(packageNodeHandler.Package.Name); this.Node.Nodes.Remove(packageNodeHandler.Node); }