void FillPropertyInfoTree(string value, PopupContainerControl popcontainer) { if (popcontainer.Controls.Count > 0) { PropertyInfoTree ppit = popcontainer.Controls[0] as PropertyInfoTree; if (ppit != null) { ppit.SetClassParams(value); } } }
void GenPropertyInfoTree(string typestring, string value, PopupContainerControl popcontainer) { if (string.IsNullOrEmpty(typestring)) { return; } PropertyInfoTree ppit = GetCachePropTree(typestring, popcontainer.Name); popcontainer.Controls.Clear(); popcontainer.Controls.Add(ppit); }
PropertyInfoTree GetCachePropTree(string typestring, string tag) { if (!_proptrees.ContainsKey(typestring + tag)) { Type at = Type.GetType(typestring); PropertyInfoTree ppit = new PropertyInfoTree(); ppit.Dock = DockStyle.Fill; ppit.SetClassParams(at); _proptrees.Add(typestring + tag, ppit); return(ppit); } else { return(_proptrees[typestring + tag] as PropertyInfoTree); } }