Esempio n. 1
0
        private void createPatientBtn_Click(object sender, EventArgs e)
        {
            Patient patient = new Patient();

            if (fachkonzept.CreatePatient(patient))
            {
                patients.Add(patient);
                patientBindingSource.ResetBindings(false);
                dataGridView1.CurrentCell = dataGridView1.Rows[dataGridView1.Rows.Count - 1].Cells[1];
                dataGridView1.BeginEdit(false);
            }
            else
            {
                MessageBox.Show("Patient konnte nicht angelegt werden.", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }