Who knows about my loneliness in the dark? How can I create an online TV genie?

Source: Internet
Author: User

Who knows about my loneliness in the dark? How can I create an online TV genie?

The annual Internet TV genie project kicked off again in 2014. At present, there is a mixture of joy, pain, melancholy, loss, and many reluctance.

But it's coming to an end. Then, where should we go for S2218 ......

Continue to cheer up, or give up permanently ??? Maybe giving up is also a kind of beauty.

What did the online TV genie do ????

Resolution: Read the information in the FullChannels. xml file in the bin \ Debug directory to the memory to form a generic set.

The collection type is Dictionary <string, ChannelBase> list. It is described in vernacular as a collection that reads data from the hard disk to the memory. But the person

Can not directly see the data in the memory. To see data in the memory with the naked eye, you must bind it to a control on the interface for explicit display.

Foreach (ChannelBase item in list)

{

// Each item represents a channel node, and a node corresponds to a TreeNode in the tree structure.

TreeNode tn = new TreeNode ();

Tn. Text = item. ChannelName;

Tn. Tag = item;

AllNode. Nodes. Add (tn );

}

 

Click a channel to display all the content lists under the channel. The core idea is to convert the Tag attribute of the selected node into a ChannelBase object.

Channel. Fetch () is equivalent to assigning values to a set attribute in the channel class. It is like when List <TvProgram> list

DgvList. DataSource = list;

Oh! I am going! I can't write any more. It suddenly stops in the classroom !!!!

Let the genie die like this. As the children's shoes said, I have little practice! What you know is not done ~!!!!

It is safe to dock a ship in a harbor, but this is not the purpose of shipbuilding.

 

  

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.