Example #1
0
        private void buttonDrugAdd_Click(object sender, EventArgs e)
        {
            var addForm = new AddDrugForm(this);

            addForm.BringToFront();
            addForm.Activate();
            addForm.Show();
        }
Example #2
0
        private void buttonDrugDetails_Click(object sender, EventArgs e)
        {
            DrugGridClickEvent();

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

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

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