private void button1_Click(object sender, EventArgs e) { frmMisic frmMisic = new frmMisic(null); frmMisic.Show(); this.Close(); }
private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex == 2) { int _id = Int32.Parse(dataGridView1.Rows[e.RowIndex].Cells["Id"].Value.ToString()); frmMisic frmMisic = new frmMisic(_id); frmMisic.Show(); this.Close(); } }