コード例 #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            frmMisic frmMisic = new frmMisic(null);

            frmMisic.Show();
            this.Close();
        }
コード例 #2
0
 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();
     }
 }