Пример #1
0
 private void Report()
 {
     Thread.Sleep(TimeSpan.FromSeconds(1));
     this.Dispatcher.BeginInvoke(new Action(() =>
     {
         if (tempDate.Count > 0)
         {
             FileOperation.CheckListExportEXCEL(User, (CountType)timeInterval.SelectedIndex, DB, tempDate);
             tempDate.Clear();
         }
         else
         {
             FileOperation.CheckListExportEXCEL(User, (CountType)timeInterval.SelectedIndex, DB);
         }
         result.Content    = Lang.ReportProcessEnd;
         result.Background = Brushes.Green;
     }));
 }