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

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

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

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

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