/// <summary> /// This method handles the "OK" button click on the AddArtist form. /// </summary> /// <param name="sender"> /// The sender. /// </param> /// <param name="e"> /// The e. /// </param> private void OkButtonClick(object sender, EventArgs e) { // Add the artist in the textbox, error checking will be done in AddArtist int artistId = Artist.AddArtist(this.artistTxtBox.Text.Trim()); // Save the new genreID that was created in the tag this.Tag = artistId; // Display a deug message box // string msg = "ArtistID=" + artistId.ToString(); // MessageBox.Show(msg); // Close the genre pop-up form this.Close(); }