Ejemplo n.º 1
0
 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");
         }
     }
 }