private void genreToolStripMenuItem_Click(object sender, EventArgs e) { Genre_insert = new Form_GenreInsert(this) { Visible = true }; this.Visible = false; }
private void button_edit_Click(object sender, EventArgs e) { Form_GenreInsert genreInsert = null; int selectedRow = table_genres.CurrentRow.Index; if (selectedRow < genreList.Count()) { genreInsert = new Form_GenreInsert(genreList[selectedRow], this) { Visible = true }; this.Visible = false; } else { MessageBox.Show("Select a Genre to Edit", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Information); } }