Ejemplo n.º 1
0
        private void buttonRemoveDocFromJob_Click(object sender, EventArgs e)
        {
            if (dataGridView1.SelectedRows.Count == 0 || dataGridView1.SelectedCells[0].Value == null)
            {
                MessageBox.Show("Выберите пациента", "Ошибка");
            }
            else
            {
                int     id      = (int)dataGridView1.SelectedCells[3].Value;
                Patient patient = (Patient)db.PersonSet.Find(id);

                Form showEditDeleteIllnesses = new ShowEditDeleteIllnesses(patient);
                showEditDeleteIllnesses.ShowDialog();
            }
            ReloadForm(true);
        }
Ejemplo n.º 2
0
        private void просмотретьИсториюБолезнейToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form showIllnesses = new ShowEditDeleteIllnesses(patient);

            showIllnesses.Show();
        }