示例#1
0
        protected void OnControlAdded(object sender, wControlCollectEventArgs e)
        {
            var node = tvList.Nodes[0].Nodes.Add(e.Control.Name);

            e.Control.PropertyChangedEvent += m_propertyChangedEvent;
            node.Tag = e.Control;
        }
示例#2
0
        protected void OnControlAdded(object sender, wControlCollectEventArgs args)
        {
            var handler = ControlAddedEvent;

            if (handler != null)
            {
                handler(this, args);
            }
        }
示例#3
0
 protected void OnControlRemoved(object sender, wControlCollectEventArgs e)
 {
     e.Control.PropertyChangedEvent -= m_propertyChangedEvent;
     foreach (TreeNode node in tvList.Nodes[0].Nodes)
     {
         if (node.Tag.Equals(e.Control))
         {
             node.Remove();
             return;
         }
     }
 }