Пример #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();
        }