示例#1
0
        private void iPlayerForm_Load(object sender, EventArgs e)
        {
            const string DEFAULT_FILTER = "TVAllEpisodes";

            // set up initial view of treeview
            FilterList.ExpandAll();
            FilterList.SelectedNode = FilterList.Nodes.Find(DEFAULT_FILTER, true)[0];
            var f = new Font(FilterList.Font.FontFamily, 11.25F);

            FilterList.Nodes["TV"].NodeFont    = f;
            FilterList.Nodes["Radio"].NodeFont = f;

            UpdateFilter(DEFAULT_FILTER); // default
            UpdateCacheLabel();
        }