コード例 #1
0
        private void createIllnessBtn_Click(object sender, EventArgs e)
        {
            Illness illness = new Illness();

            if (fachkonzept.CreateIllness(illness))
            {
                illnesses.Add(illness);
                illnessBindingSource.ResetBindings(false);
                dataGridView3.CurrentCell = dataGridView3.Rows[dataGridView3.Rows.Count - 1].Cells[1];
                dataGridView3.BeginEdit(false);
            }
            else
            {
                MessageBox.Show("Krankheit konnte nicht angelegt werden.", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }