Ejemplo n.º 1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                return;
            }
            ProfileInfo form = new ProfileInfo(list[dataGridView1.CurrentRow.Index]);

            form.Show();
        }
Ejemplo n.º 2
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0)
            {
                dataGridView1.ClearSelection();
                return;
            }
            ProfileInfo form = new ProfileInfo(list[Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value)]);

            form.Show();
        }
Ejemplo n.º 3
0
        private void openProfile_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0)
            {
                MessageBox.Show("Выберите пациента");
                return;
            }
            ProfileInfo form = new ProfileInfo(list[Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value)]);

            form.Show();
        }