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