Esempio n. 1
0
 private void addGenreToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         var addGenre = new AddGenre();
         addGenre.Show();
     }
     catch (Exception ex)
     {
         DisplayErrorMessageBox(ex);
     }
 }
Esempio n. 2
0
        private void addSongButtonAddGenre_Click(object sender, System.EventArgs e)
        {
            var addGenre = new AddGenre();
            addGenre.ShowDialog();

            if (addGenre.CreatedGenre != null)
            {
                InitializeGenreComboBox();
                addSongComboBoxGenre.SelectedValue = addGenre.CreatedGenre.GenreId;
                addSongComboBoxAlbum.Focus();
            }
        }