Пример #1
0
        private void buttonInstitutionAdd_Click(object sender, EventArgs e)
        {
            var addForm = new AddInstitutionForm(this);

            addForm.BringToFront();
            addForm.Activate();
            addForm.Show();
        }
Пример #2
0
        private void buttonInstitutionDetails_Click(object sender, EventArgs e)
        {
            InstitutionGridClickEvent();

            var value =
                int.Parse((string)dataGridInstitution.Rows[dataGridInstitution.SelectedRows[0].Index].Cells[0].Value);
            var obj = ServiceProvider.Get <ApotekarskaUstanovaService>().Get(value);

            var form = new AddInstitutionForm(this, obj, false, true);

            form.BringToFront();
            form.Activate();
            form.Show();
        }