Ejemplo n.º 1
0
        private void btnShowEPG_Click(object sender, EventArgs e)
        {
            List <ChannelInfo> infos = new List <ChannelInfo>();
            DataGridView       grid  = gridTVChannels;
            Button             btn   = (Button)sender;

            if (btn != btnShowEPG)
            {
                grid = gridRadioChannels;
            }
            foreach (DataGridViewRow row in grid.Rows)
            {
                ChannelInfo info = new ChannelInfo();
                info.channelID = row.Cells[0].Value.ToString();
                info.name      = row.Cells[1].Value.ToString();
                infos.Add(info);
            }
            frmEPG frm = new frmEPG(serverIntf, infos);

            frm.Show();
        }
Ejemplo n.º 2
0
 private void btnShowEPG_Click(object sender, EventArgs e)
 {
   List<ChannelInfo> infos = new List<ChannelInfo>();
   DataGridView grid = gridTVChannels;
   Button btn = (Button)sender;
   if (btn != btnShowEPG)
     grid = gridRadioChannels;
   foreach (DataGridViewRow row in grid.Rows)
   {
     ChannelInfo info = new ChannelInfo();
     info.channelID = row.Cells[0].Value.ToString();
     info.name = row.Cells[1].Value.ToString();
     infos.Add(info);
   }
   frmEPG frm = new frmEPG(serverIntf, infos);
   frm.Show();
 }