Пример #1
0
        private async void btnAdd_Click(object sender, EventArgs e)
        {
            var frm = new frmSongDetails();

            frm.ShowDialog();

            await loadSongs();
        }
Пример #2
0
        private async void DgvSongs_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int id  = int.Parse(dgvSongs.SelectedRows[0].Cells["Id"].Value.ToString());
            var frm = new frmSongDetails(id);

            frm.ShowDialog();

            await loadSongs();
        }
        private async void BtnAddSong_Click(object sender, EventArgs e)
        {
            var            SelectedSong = cmbSong.SelectedItem as Model.Songs;
            frmSongDetails frm          = new frmSongDetails();

            if (SelectedSong != null && SelectedSong.Status == ReviewStatus.Pending)
            {
                frm = new frmSongDetails(SelectedSong.Id);
            }

            if (frm.ShowDialog() == DialogResult.OK)
            {
                await LoadCmbSongs();
            }
        }