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.