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); } }