public void Init(object object_0) { IPopuMenuWrap wrap = null; wrap = object_0 as IPopuMenuWrap; wrap.Clear(); if (this.int_0 > 0) { wrap.AddItem("Catalog_StartServer", true); wrap.AddItem("Catalog_StopServer", true); wrap.AddItem("Catalog_ServiceProperty", true); } wrap.AddItem("Catalog_GxObjectProperty", true); }
private static void ReadBarItems(IPopuMenuWrap ipopuMenuWrap_0, XmlNode xmlNode_0) { MenuItemDef itemAttribute = GetItemAttribute(xmlNode_0); if (xmlNode_0.ChildNodes.Count > 0) { itemAttribute.HasSubMenu = true; } ipopuMenuWrap_0.AddItem(itemAttribute); for (int i = 0; i < xmlNode_0.ChildNodes.Count; i++) { ReadBarItems(ipopuMenuWrap_0, itemAttribute.Name, xmlNode_0.ChildNodes[i]); } }