Esempio n. 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);
 }
Esempio n. 2
0
 private void textBox1_KeyUp(object sender, KeyEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
     if (e.KeyCode == Keys.Enter)
     {
         panel3.Controls.Clear();
         buscarProductos();
     }
 }
Esempio n. 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();
     }
 }
Esempio n. 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;
     }
 }
Esempio n. 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);
        }
Esempio n. 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();
         }
     }
 }
Esempio n. 7
0
 private void button2_KeyPress(object sender, KeyPressEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
 }
Esempio n. 8
0
 private void dataGridView2_KeyPress(object sender, KeyPressEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
 }
Esempio n. 9
0
 private void AgregarProducto_KeyPress(object sender, KeyPressEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
     //MessageBox.Show((int)e.KeyChar+"", "Evento");
 }
Esempio n. 10
0
 private void textBox6_KeyUp(object sender, KeyEventArgs e)
 {
     StaticsFunctions.manejarEventos(e, this);
 }