示例#1
0
 private void favouriteToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     FavGridView.Rows.Clear();
     FillFav();
     DateGridView.Hide();
     TvshowGridView.Hide();
     FavGridView.Show();
 }
示例#2
0
 private void TVprogramStripMenuItem_Click(object sender, EventArgs e)
 {
     SearchBox.Hide();
     TvshowGridView.Hide();
     FavGridView.Hide();
     DateGridView.Show();
     dtDate.Clear();
     foreach (Date i in program.dateList)
     {
         if (i.StartTime >= DateTime.Today && i.EndTime <= DateTime.Today.AddDays(1))
         {
             int index = program.TVshowIndexByID(i.Id);
             if (index != -1)
             {
                 dtDate.Rows.Add(i.StartTime, program.tvshowList[index].Name, program.tvshowList[index].ChanelName, i.Duration, i.EndTime);
             }
         }
     }
 }