Beispiel #1
0
        private void buttonDrugStoreAdd_Click(object sender, EventArgs e)
        {
            var addForm = new AddDrugStoreForm(this);

            addForm.BringToFront();
            addForm.Activate();
            addForm.Show();
        }
Beispiel #2
0
        private void buttonDrugStoreDetails_Click(object sender, EventArgs e)
        {
            DrugStoreGridClickEvent();

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

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

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