Ejemplo n.º 1
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Employees employees = new Employees();

            Employees_AddEdit aeemployees = new Employees_AddEdit(employees);

            if (aeemployees.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                employeesList.Add(employees);
                loadData();
            }
        }
Ejemplo n.º 2
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            Employees employees = new Employees();

            Employees_AddEdit aeemployees = new Employees_AddEdit(employees);

            if (aeemployees.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                employeesList.Add(employees);
                loadData();
            }
        }
Ejemplo n.º 3
0
        private void _dgvEmployees_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Region region = getRegion();

            string EmployeesName = _dgvEmployees.Rows[_dgvEmployees.SelectedCells[0].RowIndex].Cells[3].Value.ToString();

            Employees employees = employeesList.getItem(region, EmployeesName);

            Employees_AddEdit aeemployees = new Employees_AddEdit(employees);

            if (aeemployees.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                loadData();
            }
        }
Ejemplo n.º 4
0
        private void _dgvEmployees_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Region region = getRegion();

            string EmployeesName = _dgvEmployees.Rows[_dgvEmployees.SelectedCells[0].RowIndex].Cells[3].Value.ToString();

            Employees employees = employeesList.getItem(region, EmployeesName);

            Employees_AddEdit aeemployees = new Employees_AddEdit(employees);

            if (aeemployees.ShowDialog() == System.Windows.Forms.DialogResult.OK)
                loadData();
        }