private void btnGuardar_Click(object sender, EventArgs e)
        {
            if (cmb_IDEstado.SelectedValue.ToString() != "0" ||
                txt_IDTipoEmpleado.Text != string.Empty ||
                txt_desc.Text != string.Empty)

            {
                cls_TiposEmpleados_BLL obj_TipoEmpleado_BLL = new cls_TiposEmpleados_BLL();
                string sMsjError = string.Empty;
                Obj_DAL_TipoEmpleado.SDescTipo = txt_desc.Text.Trim();
                Obj_DAL_TipoEmpleado.CIdEstado = Convert.ToChar(cmb_IDEstado.SelectedValue.ToString().Trim());

                if (Obj_DAL_TipoEmpleado.CBandAX == 'I')
                {
                    obj_TipoEmpleado_BLL.Insertar_TipoEmpleado(ref sMsjError, ref Obj_DAL_TipoEmpleado);

                    if (sMsjError == string.Empty)
                    {
                        MessageBox.Show("Se han ingresado los datos correctamente");
                        Obj_DAL_TipoEmpleado.CBandAX = 'U';
                        toolStripLabel3.Text         = "Modificar";
                    }
                    else
                    {
                        MessageBox.Show("Se presento un error al tratar de guardar el registro" + "[ " + sMsjError + " ]");
                    }
                }
                else
                {
                    obj_TipoEmpleado_BLL.Modificar_TipoEmpleado(ref sMsjError, ref Obj_DAL_TipoEmpleado);
                    if (sMsjError == string.Empty)
                    {
                        MessageBox.Show("Se modificó el registro exitosamente");
                        Obj_DAL_TipoEmpleado.CBandAX = 'U';
                    }
                    else
                    {
                        MessageBox.Show("Se presento un error al tratar de guardar el registro" + "[ " + sMsjError + " ]");
                    }
                }
            }

            else
            {
                MessageBox.Show("Todos los cambios son obligatorios", "Informacion", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }