コード例 #1
0
        private void btnAddStream_Click(object sender, EventArgs e)
        {
            FrmAdd frmAdd = new FrmAdd(listFavoriteStreams);

            if (frmAdd.ShowDialog() == DialogResult.OK)
                updateComboStreams();
        }
コード例 #2
0
        private void btnModify_Click(object sender, EventArgs e)
        {
            FrmAdd frmAdd = new FrmAdd(listFavoriteStreams, imgCmbStreams.SelectedIndex, false);

            if (frmAdd.ShowDialog() == DialogResult.OK)
                updateComboStreams();
        }
コード例 #3
0
        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();
        }