예제 #1
0
        private void addAlbumToolStripMenuItem_Click(object sender, EventArgs e)
        {
            try
            {
                var addAlbum = new AddAlbum();
                addAlbum.Show();
            }
            catch (Exception ex)
            {
                DisplayErrorMessageBox(ex);
            }

        }
예제 #2
0
        private void addSongButtonAddAlbum_Click(object sender, System.EventArgs e)
        {
            var addAlbum = new AddAlbum();
            addAlbum.ShowDialog();

            if (addAlbum.CreatedAlbum != null)
            {
                InitializeAlbumComboBox();
                addSongComboBoxAlbum.SelectedValue = addAlbum.CreatedAlbum.AlbumId;
                addSongTextBoxSongTrackNumber.Focus();
            }
        }