private void buttonDiseaseAdd_Click(object sender, EventArgs e) { var addForm = new AddDiseaseForm(this); addForm.BringToFront(); addForm.Activate(); addForm.Show(); }
private void buttonDiseaseDetails_Click(object sender, EventArgs e) { DiseaseGridClickEvent(); var value = int.Parse((string)dataGridDisease.Rows[dataGridDisease.SelectedRows[0].Index].Cells[0].Value); var obj = ServiceProvider.Get <BolestService>().Get(value); var form = new AddDiseaseForm(this, obj, false, true); form.BringToFront(); form.Activate(); form.Show(); }