Beispiel #1
0
        private void employeesCreate_Button_Click(object sender, EventArgs e)
        {
            Main.EmployeeIndex = null;
            var employee_Form = new Employee_Form();

            employee_Form.EmployeeFormClosed += new EventHandler(employeeForm_Closed);
            employee_Form.Show();
            this.Enabled = false;
        }
Beispiel #2
0
        private void employeesEdit_Button_Click(object sender, EventArgs e)
        {
            if (Main.EmployeeIndex == null)
            {
                MessageBox.Show("Must select item to edit", "Invalid Selection");
                return;
            }

            var employee_Form = new Employee_Form();

            employee_Form.EmployeeFormClosed += new EventHandler(employeeForm_Closed);
            employee_Form.Show();
            this.Enabled = false;
        }