/// <summary>
 /// Configura forms de la ventana en el inicio
 /// </summary>
 private void ConfigInicialForms()
 {
     this.iCerrarCodigo            = false;
     this.CancelButton             = this.button_Cancelar;
     this.AcceptButton             = this.button_Aceptar;
     this.iCantRangosFecha         = this.iBanner.ListaRangosFecha.Count;
     this.textBox_Nombre.Text      = this.iBanner.Nombre;
     this.button_AgregarHora.Image = ImagenServices.CambiarTamañoImagen(Properties.Resources.Modificar, this.button_AgregarHora.Size.Width, this.button_AgregarHora.Size.Height);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Determina el ícono que representa el estado del campo
        /// </summary>
        /// <param name="pPictureBox">Form que contiene la imagen</param>
        /// <param name="value">Valor booleano que representa si está o no completo el campo correspondiente</param>
        private void CampoCompleto(PictureBox pPictureBox, bool value)
        {
            int anchoComun = pPictureBox.Width;
            int altoComun  = pPictureBox.Height;

            if (value)
            {
                pPictureBox.Image = ImagenServices.CambiarTamañoImagen(Properties.Resources.greenTick, anchoComun, altoComun);
            }
            else
            {
                pPictureBox.Image = ImagenServices.CambiarTamañoImagen(SystemIcons.Exclamation.ToBitmap(), anchoComun, altoComun);
            }
        }