Example #1
0
        public void Limpiar()
        {
            RolIdNumericUpDown.Value = 0;
            DescripcionRolTextBox.Clear();
            MyErrorProvider.Clear();
            EsAsignadoCheckBox.Checked = false;
            ActivoCheckBox.Checked     = false;
            FechaDateTimePicker.Value  = DateTime.Now;

            this.Detalle = new List <RolesDetalle>();
            CargarGrid();
        }
Example #2
0
        public bool Validar()
        {
            bool paso = true;

            if (DescripcionRolTextBox.Text == string.Empty)
            {
                MyErrorProvider.SetError(DescripcionRolTextBox, "Debes agregar un dato a este campo");
                DescripcionRolTextBox.Focus();

                paso = false;
            }

            return(paso);
        }