/// <summary>
        /// 双击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void tvSearch_DoubleClick(object sender, EventArgs e)
        {
            TreeNode node = tvSearch.SelectedNode;

            if (node != null)
            {
                if (node.Nodes.Count == 0)
                {
                    BookTypeGroup model = node.Tag as BookTypeGroup;
                    getType       g     = new getType(f.loadType);
                    g(model.TypeID);
                    this.Close();
                    this.Dispose();
                }
            }
        }
        /// <summary>
        /// get book types
        /// </summary>
        /// <returns></returns>
        public List <BookTypeGroup> getBookTypeGroup()
        {
            string comd = "select * from BookType";
            List <BookTypeGroup> list = new List <BookTypeGroup>();
            SQLHelper            h    = new SQLHelper();

            using (SqlDataReader read = h.getDataReader(comd))
            {
                if (read.HasRows)
                {
                    while (read.Read())
                    {
                        BookTypeGroup group = new BookTypeGroup();
                        group.TypeID   = read["typeID"].ToString();
                        group.TypeName = read["typeName"].ToString();
                        group.ParentID = read["parentID"].ToString();
                        list.Add(group);
                    }
                }
            }
            return(list);
        }