private void buttonPrescriptionAdd_Click(object sender, EventArgs e) { var addForm = new AddPrescriptionForm(this); addForm.BringToFront(); addForm.Activate(); addForm.Show(); }
private void buttonPrescriptionDetails_Click(object sender, EventArgs e) { PrescriptionGridClickEvent(); var value = int.Parse((string)dataGridPrescription.Rows[dataGridPrescription.SelectedRows[0].Index].Cells[0].Value); var obj = ServiceProvider.Get <ReceptService>().Get(value); var form = new AddPrescriptionForm(this, obj, false, true); form.BringToFront(); form.Activate(); form.Show(); }