Esempio n. 1
0
        private void volverToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmBill volver = new frmBill(id_usuario, usuario, cargo, id_customer);

            volver.Show();
            this.SetVisibleCore(false);
        }
Esempio n. 2
0
        private void Guardar()
        {
            using (GestorVenta insertnewsavebills = new GestorVenta())
            {
                f1 = fecha.ToString("MM/dd/yyyy");


                insertnewsavebills.InsertNewSaveBills(id_customer, f1, id_lastbill);
                MessageBox.Show("Saved successfully", caption: "Alerta", buttons: MessageBoxButtons.OK, icon: MessageBoxIcon.Information);
                frmBill volver = new frmBill(id_usuario, usuario, cargo, id_customer);
                volver.Show();
                this.SetVisibleCore(false);
            }
        }
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         frmBill custormeslist = new frmBill(id_usuario, usuario, cargo, int.Parse(lblCode.Text));
         custormeslist.Show();
         this.SetVisibleCore(false);
     }
     catch (Exception g) {
         MessageBox.Show("Este cliente no posee facturas");
         frmBill custormeslist = new frmBill(id_usuario, usuario, cargo, int.Parse(lblCode.Text));
         custormeslist.Show();
         this.SetVisibleCore(false);
     }
 }