コード例 #1
0
        private void DataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            int          id   = Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value);
            MonumentInfo form = new MonumentInfo(id);

            form.Show();
        }
コード例 #2
0
        private void MaterialFlatButton1_Click(object sender, EventArgs e)
        {
            int          id   = Convert.ToInt32(dataGridView1.Rows[dataGridView1.CurrentRow.Index].Cells[0].Value);
            MonumentInfo form = new MonumentInfo(id);

            form.Show();
        }