public static void insertAllStats() { String message = "Inserting all stats from " + start + " to " + end; log.Info(message); if (MainApp.GetConsole()) { MessageBox.Show(message); } InfluxdbClient.dropDB(); InfluxdbClient.createDB(); //System.Threading.Thread.Sleep(2000); insertInvoiceStats(); log.Info("Finished invoices."); insertWorkOrderStats(); log.Info("Finished wo."); insertProposalStats(); log.Info("Finished props."); insertPurchaseOrders(); log.Info("Finished po."); insertPayrollStats(); log.Info("Finished pay."); insertARStats(); log.Info("Finished ar."); insertItems(); log.Info("Finished items."); }
private void createDBToolStripMenuItem_Click(object sender, EventArgs e) { InfluxdbClient.createDB(); }