private void btnAddStream_Click(object sender, EventArgs e) { FrmAdd frmAdd = new FrmAdd(listFavoriteStreams); if (frmAdd.ShowDialog() == DialogResult.OK) updateComboStreams(); }
private void btnModify_Click(object sender, EventArgs e) { FrmAdd frmAdd = new FrmAdd(listFavoriteStreams, imgCmbStreams.SelectedIndex, false); if (frmAdd.ShowDialog() == DialogResult.OK) updateComboStreams(); }
private void btnAddLiveStream_Click(object sender, EventArgs e) { Console.WriteLine(listLiveStreams.getSize() + " " + imgCmbLiveStreams.Items.Count); int index = imgCmbLiveStreams.SelectedIndex; String caption = listLiveStreams[index].Caption; String url = listLiveStreams[index].StreamUrl; String quality = (String)cmbQualities.SelectedItem; FrmAdd frmAdd = new FrmAdd(listFavoriteStreams, caption, url, quality); if (frmAdd.ShowDialog() == DialogResult.OK) updateComboStreams(); }