Ejemplo n.º 1
0
        private void buttonEmployeeAdd_Click(object sender, EventArgs e)
        {
            var addForm = new AddEmployeeForm(this);

            addForm.BringToFront();
            addForm.Activate();
            addForm.Show();
        }
Ejemplo n.º 2
0
        private void buttonEmployeeDetails_Click(object sender, EventArgs e)
        {
            EmployeeGridClickEvent();

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

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

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