Exemplo n.º 1
0
        public int Get_My_Videos(TreeView tv, string[] contents)
        {
            tv.Nodes.Clear();
            TreeNode tn;
            int      i_count = 0;

            foreach (var content in contents)
            {
                tn = new TreeNode(content);
                string         c_replaced = replace_string(content);
                List <T_Video> vs         = MyVideoBussiness.GetList_Video_Info_Like(c_replaced);
                foreach (var v in vs)
                {
                    TreeNode tn_sub = new TreeNode(v.FILE_NAME);
                    tn_sub.Tag = v;
                    tn.Nodes.Add(tn_sub);
                    i_count++;
                }
                tv.Nodes.Add(tn);
            }
            tv.Nodes.Add("[查询]");
            return(i_count);
        }
Exemplo n.º 2
0
 public OrderControler()
 {
     re_arr = MyVideoBussiness.GetList_Config("Moive_Name_Replace");
 }