Ejemplo n.º 1
0
        /**
         * @brief call this after _treeNode is added to bttree
         **/
        public void DeclareAddNode(BTNode _treeNode)
        {
            BTNode parent    = m_btTree.FindParent(_treeNode);
            string parentKey = BTEditorRectangle.GetKey(parent);

            if (m_sprites.ContainsKey(parentKey))
            {
                BTEditorRectangle.RecursivelyCreateSprites(m_sprites, parent, this);
                AutoLayoutChart();
                Refresh();
            }
        }
Ejemplo n.º 2
0
 /**
  * @brief create chart according to m_btTree. if it is null, it will clear
  *  the view
  **/
 private void CreateChart()
 {
     if (m_btTree == null)
     {
         m_sprites = null;
     }
     else
     {
         m_sprites = new Dictionary <string, BTEditorSprite>();
         BTEditorRectangle.RecursivelyCreateSprites(m_sprites, m_btTree.Root, this);
     }
 }