コード例 #1
0
 void FillPropertyInfoTree(string value, PopupContainerControl popcontainer)
 {
     if (popcontainer.Controls.Count > 0)
     {
         PropertyInfoTree ppit = popcontainer.Controls[0] as PropertyInfoTree;
         if (ppit != null)
         {
             ppit.SetClassParams(value);
         }
     }
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
     }
 }