Example #1
0
 private void textBox9_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.'))
     {
         e.Handled = true;
     }
     StaticsFunctions.manejarEventos(e, this);
 }
Example #2
0
 private void textBox1_KeyUp(object sender, KeyEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
     if (e.KeyCode == Keys.Enter)
     {
         panel3.Controls.Clear();
         buscarProductos();
     }
 }
Example #3
0
 private void textBox2_KeyUp(object sender, KeyEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
     if (e.KeyCode == Keys.Enter)
     {
         tp = StaticsFunctions.buscarServicios(textBox2.Text);
         panel2.Controls.Clear();
         agregarServicios();
     }
 }
Example #4
0
 private void textBox4_KeyUp(object sender, KeyEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
     if (e.KeyCode == Keys.Enter)
     {
         tp = StaticsFunctions.buscarProv(textBox4.Text);
         var list = new BindingList <GVProveedor>(mandarProvGV(tp.proveedores));
         dataGridView2.DataSource = list;
         reiniciarTextBox();
         modificarProveedor = false;
     }
 }
Example #5
0
        private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
        {
            if (!char.IsControl(e.KeyChar) && !char.IsDigit(e.KeyChar) && (e.KeyChar != '.'))
            {
                e.Handled = true;
            }

            // Only allow one decimal point
            if ((e.KeyChar == '.') && ((sender as TextBox).Text.IndexOf('.') > -1))
            {
                e.Handled = true;
            }

            StaticsFunctions.manejarEventos(e, this);
        }
Example #6
0
 private void textBox9_KeyUp(object sender, KeyEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
     if (e.KeyCode == Keys.Enter)
     {
         tc = StaticsFunctions.buscarClientesPorTelefono(mandarTelefono());
         panel1.Controls.Clear();
         agregarClientes();
     }
     if (e.KeyCode == Keys.Back)
     {
         if (textBox9.Text.Length == 0)
         {
             textBox8.Focus();
         }
     }
 }
Example #7
0
 private void button2_KeyPress(object sender, KeyPressEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
 }
Example #8
0
 private void dataGridView2_KeyPress(object sender, KeyPressEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
 }
Example #9
0
 private void AgregarProducto_KeyPress(object sender, KeyPressEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
     //MessageBox.Show((int)e.KeyChar+"", "Evento");
 }
Example #10
0
 private void textBox6_KeyUp(object sender, KeyEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
 }