private void agregarVentaToolStripMenuItem_Click(object sender, EventArgs e) { BuyDlg dialog = new BuyDlg(); dialog.setDB(database); dialog.isBuy = false; dialog.ShowDialog(); updateTable(database.readAll()); }
private void toolStripMenuItem3_Click(object sender, EventArgs e) { BuyDlg dialog = new BuyDlg(); dialog.setDB(database); dialog.isBuy = true; dialog.ShowDialog(); updateTable(database.readAll()); }