public static void Main() { Console.WriteLine("OPERATION HAS STARTED"); while (true) { if (GenerateReports.CheckToGenerateReport()) { GenerateReports.Report(); } Thread.Sleep(1000); } }
private void CheckReport() { if (GenerateReports.CheckToGenerateReport()) { //stop timer //Generate Report while (GenerateReports.CheckToGenerateReport()) { GenerateReports.Report(); listBox1.Refresh(); listBox1.Items.Add("Report Generated"); } } }
private void button1_Click(object sender, EventArgs e) { GenerateReports.BatchReport(4); listBox1.Refresh(); listBox1.Items.Add("Report Generated"); }