コード例 #1
0
        private async void btnAdd_Click(object sender, EventArgs e)
        {
            var frm = new frmGenreDetails();

            frm.ShowDialog();

            await loadGenres();
        }
コード例 #2
0
        private async void BtnAddGenre_Click(object sender, EventArgs e)
        {
            var             SelectedGenre = cmbGenre.SelectedItem as Model.Genres;
            frmGenreDetails frm           = new frmGenreDetails();

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

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