Esempio n. 1
0
 private void TVshowListToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SearchBox.Show();
     FillFav();
     TvshowGridView.Show();
     DateGridView.Hide();
     FavGridView.Hide();
 }
Esempio n. 2
0
 private void favouriteToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     FavGridView.Rows.Clear();
     FillFav();
     DateGridView.Hide();
     TvshowGridView.Hide();
     FavGridView.Show();
 }
Esempio n. 3
0
 //сортування
 private void SortToolStripMenuItem_Click(object sender, EventArgs e)
 {
     dt.DefaultView.Sort = "";
     FillTVshow();
     SearchBox.Hide();
     DateGridView.Hide();
     FavGridView.Hide();
     TvshowGridView.Show();
 }
Esempio n. 4
0
 public MainMenuViewer(TVprogram pr)
 {
     InitializeComponent();
     program = pr;
     SearchBox.Hide();
     FavGridView.Hide();
     tVshowBindingSource1.DataSource = program.tvshowList;
     DateGridView.Hide();
     dateBindingSource.ResetBindings(false);
     DateGridView.DataSource = program.dateList;
 }
Esempio n. 5
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);
             }
         }
     }
 }