示例#1
0
 private void txtclave_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         if (txtclave.Text.Trim().Length > 0)
         {
             Ingresar.Focus();
         }
     }
 }
示例#2
0
        public CuadernosInicio()
        {
            this.Hide();
            InitializeComponent();
            Ingresar ingresar = new Ingresar();

            ingresar.ShowDialog();
            this.Show();
            usuarioLabel.Text = "@" + usuarioActual.nombre;
        }
        public bool IniciarSesion(string usuario, string clave)
        {
            driver.Url = urlInicial;
            Usuario.Clear();
            Usuario.SendKeys(usuario);
            Password.Clear();
            Password.SendKeys(clave);
            Ingresar.Click();

            return(driver.Url.Equals(urlListado));
        }
示例#4
0
        public void IngresarPropuesta()
        {
            try
            {
                Core.LogicaNegocio.Entidades.Factura Factura = new Core.LogicaNegocio.Entidades.Factura();

                Factura.Titulo           = _vista.Titulo.Text;
                Factura.Descripcion      = _vista.Descripcion.Text;
                Factura.Prop             = _propuesta;
                Factura.Fechaingreso     = DateTime.Now;
                Factura.Estado           = _vista.Estado.SelectedItem.Text;
                Factura.Fechapago        = DateTime.Now;
                Factura.Procentajepagado = float.Parse(_vista.Porcentaje.Text);

                Core.LogicaNegocio.Comandos.ComandoFactura.Ingresar Ingresar;
                Ingresar = Core.LogicaNegocio.Fabricas.FabricaComandosFactura.CrearComandoIngresar(Factura);
                Ingresar.Ejecutar();

                _vista.Pintar("La factura se agrego con exito");
                _vista.MensajeVisible = true;
            }
            catch (WebException e)
            {
                _vista.Pintar("Error WEB al ingresar la factura");
                _vista.MensajeVisible = true;
            }
            catch (IngresarException e)
            {
                _vista.Pintar(e.Message);
                _vista.MensajeVisible = true;
            }
            catch (Exception e)
            {
                _vista.Pintar(e.Message);
                _vista.MensajeVisible = true;
            }
        }
示例#5
0
        public void IngresarConstructorTest()
        {
            Ingresar target = new Ingresar();

            Assert.Inconclusive("TODO: Implementar código para comprobar el destino");
        }