Beispiel #1
0
 public UsuarioServicio(IUnidadDeTrabajoCorreoElectronico uowCorreoElectronico,
                        IUnidadDeTrabajoRecursosHumanos uowRecursosHumanos,
                        IUnidadDeTrabajoSeguridad uowSeguridad)
 {
     this._uowCorreoElectronico = uowCorreoElectronico;
     this._uowRecursosHumanos   = uowRecursosHumanos;
     this._uowSeguridad         = uowSeguridad;
 }
Beispiel #2
0
        public _40000_ConfiguracionMail(IUnidadDeTrabajoCorreoElectronico uowCorreoElectronico)
        {
            InitializeComponent();

            this.Name          = "_40000_ConfiguracionMail";
            this.TituloVentana = "Correo Electrónico";
            this.Titulo        = "Configuración Mail";
            this.Leyenda       = "Aqui Ud. podrá configurar su Servidor de Correo Electrónico";

            this._uowCorreoElectronico = uowCorreoElectronico;

            this.UsuarioLogin = Thread.CurrentPrincipal.Identity.Name;

            // Cargar evento de Validacion de Caracteres
            this.txtPuerto.KeyPress += new KeyPressEventHandler(base.textBoxSoloNumeros_KeyPress);

            // Cargar evento de validacion para datos Obligatorios
            this.txtNombreUsuario.Validated     += new EventHandler(base.textBox_Validated);
            this.txtPassword.Validated          += new EventHandler(base.textBox_Validated);
            this.txtConfirmarPassword.Validated += new EventHandler(base.textBox_Validated);
            this.txtPuerto.Validated            += new EventHandler(base.textBox_Validated);
            this.txtServidorSMTP.Validated      += new EventHandler(base.textBox_Validated);

            // Color al recibir el Foco
            this.txtNombreUsuario.Enter     += new EventHandler(base.control_Enter);
            this.txtPassword.Enter          += new EventHandler(base.control_Enter);
            this.txtConfirmarPassword.Enter += new EventHandler(base.control_Enter);
            this.txtPuerto.Enter            += new EventHandler(base.control_Enter);
            this.txtServidorSMTP.Enter      += new EventHandler(base.control_Enter);

            // Color al perder el Foco
            this.txtNombreUsuario.Leave     += new EventHandler(base.control_Leave);
            this.txtPassword.Leave          += new EventHandler(base.control_Leave);
            this.txtConfirmarPassword.Leave += new EventHandler(base.control_Leave);
            this.txtPuerto.Leave            += new EventHandler(base.control_Leave);
            this.txtServidorSMTP.Leave      += new EventHandler(base.control_Leave);
        }