/// <summary>
 /// treeview的焦点获得事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Goodstypetree_Enter(object sender, EventArgs e)
 {
     tree_label.Hide();                                          //显示treeview
     tree_count = Goodstypetree.GetNodeCount(true).ToString();
     tree_level = SetTree.GetTreeLevel(listgtm);
     if (Goodstypetree.Width < tree_level * 45 || Goodstypetree.Height < int.Parse(tree_count) * 15)
     {
         Tree_show_timer.Start();
     }
 }
 /// <summary>
 /// treeview的显示计时器
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Tree_show_timer_Tick(object sender, EventArgs e)
 {
     if (Goodstypetree.Width < tree_level * 45)
     {
         Goodstypetree.Width += 15;
     }
     if (Goodstypetree.Height < int.Parse(tree_count) * 15)
     {
         Goodstypetree.Height += 25;
     }
     if (Goodstypetree.Width >= tree_level * 45 && Goodstypetree.Height >= int.Parse(tree_count) * 15)
     {
         Tree_show_timer.Stop();
     }
 }