Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try {
         cConexion obj = new cConexion();
         obj.cargarData(dataGridView1, Convert.ToInt32(textBuscar.Text), 1);
     }
     catch
     {
         MessageBox.Show("Ingrese Correctamente el ID del cliente");
     }
 }
Example #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Form5 id = new Form5();


            cConexion obj = new cConexion();

            MessageBox.Show(obj.modificarFactura(Convert.ToInt32(textModID.Text), Convert.ToDouble(textModMonto.Text), monthCalendar1.SelectionRange.Start.ToString("dd/MM/yyyy"), monthCalendar2.SelectionRange.Start.ToString("dd/MM/yyyy"), comboModEstado.Text));

            this.Hide();
        }
Example #3
0
 private void button4_Click(object sender, EventArgs e)
 {
     try
     {
         cConexion obj = new cConexion();
         obj.eliminarFacturas(dataGridView1, Convert.ToInt32(textBuscar.Text));
         MessageBox.Show("Las Facturas se eliminaron exitosamente");
     }
     catch {
         MessageBox.Show("Ingrese Correctamente el ID del cliente");
     }
 }
Example #4
0
 private void button6_Click(object sender, EventArgs e)
 {
     try
     {
         cConexion obj = new cConexion();
         obj.cargarData3(dataGridView1, 0);
     }
     catch
     {
         MessageBox.Show("Ingrese Correctamente el ID del cliente");
     }
 }
Example #5
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            cConexion obj = new cConexion();

            obj.cargarData4(dataGridView1);
        }