示例#1
0
 private void backgroundWorker_2_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         if (base.TaxCardInstance.QYLX.ISTDQY)
         {
             this.bool_1 = true;
         }
         else
         {
             this.bool_1 = false;
             bool     shouGongXiaZai = false;
             DateTime now            = DateTime.Now;
             while (!this.backgroundWorker_2.CancellationPending)
             {
                 if ((now.AddSeconds((double)this.int_2) > DateTime.Now) && !UpLoadCheckState.ShouGongXiaZai)
                 {
                     Thread.Sleep(0x3e8);
                 }
                 else
                 {
                     if (UpLoadCheckState.CheckState())
                     {
                         Thread.Sleep(0x3e8);
                         continue;
                     }
                     now            = DateTime.Now;
                     shouGongXiaZai = UpLoadCheckState.ShouGongXiaZai;
                     this.class105_0.method_0();
                     if (shouGongXiaZai)
                     {
                         UpLoadCheckState.ShouGongXiaZai = false;
                         shouGongXiaZai = false;
                     }
                 }
             }
             e.Cancel    = true;
             this.bool_1 = true;
             BackWorkCancleStyle style = new BackWorkCancleStyle {
                 CanclType = CancleStyle.Cancle
             };
             e.Result = style;
             Class101.smethod_0("<下载线程>下载线程退出,准备软件退出!");
         }
     }
     catch (Exception exception)
     {
         e.Cancel = true;
         BackWorkCancleStyle style2 = new BackWorkCancleStyle {
             CanclType = CancleStyle.Exception
         };
         this.bool_1 = false;
         e.Result    = style2;
         Class101.smethod_1("(下载线程异常:)" + exception.ToString());
     }
 }
示例#2
0
 private void backgroundWorker_1_DoWork_1(object sender, DoWorkEventArgs e)
 {
     try
     {
         if (base.TaxCardInstance.QYLX.ISTDQY)
         {
             this.bool_0 = true;
         }
         else
         {
             this.bool_0 = false;
             this.class85_0.class90_0.method_0();
             while (!this.backgroundWorker_1.CancellationPending)
             {
                 if (UpLoadCheckState.CheckState())
                 {
                     Thread.Sleep(0x3e8);
                 }
                 else
                 {
                     this.serverUP_0.UPDownLoadFP();
                     Thread.Sleep(0x3e8);
                 }
             }
             e.Cancel    = true;
             this.bool_0 = true;
             BackWorkCancleStyle style = new BackWorkCancleStyle {
                 CanclType = CancleStyle.Cancle
             };
             e.Result = style;
             Class101.smethod_0("(上传线程backWorkUploadForServerUp_DoWork)线程终止,软件准备退出!");
         }
     }
     catch (Exception exception)
     {
         e.Cancel = true;
         BackWorkCancleStyle style2 = new BackWorkCancleStyle {
             CanclType = CancleStyle.Exception
         };
         this.bool_0 = true;
         e.Result    = style2;
         Class101.smethod_1("(上传线程backWorkUploadForServerUp_DoWork异常:)" + exception.ToString());
     }
 }
示例#3
0
 private void backgroundWorker_0_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         DateTime now = DateTime.Now;
         while (!this.backgroundWorker_0.CancellationPending)
         {
             if (now.AddSeconds((double)this.int_0) < DateTime.Now)
             {
                 Thread.Sleep(0x3e8);
             }
             else
             {
                 now = DateTime.Now;
                 string userState = string.Empty;
                 if (this.method_7())
                 {
                     userState = "在线";
                 }
                 else
                 {
                     userState = "离线";
                 }
                 this.backgroundWorker_0.ReportProgress(1, userState);
             }
         }
         e.Cancel    = true;
         this.bool_2 = true;
         BackWorkCancleStyle style = new BackWorkCancleStyle {
             CanclType = CancleStyle.Cancle
         };
         e.Result = style;
     }
     catch (Exception)
     {
         e.Cancel    = true;
         this.bool_2 = true;
         BackWorkCancleStyle style2 = new BackWorkCancleStyle {
             CanclType = CancleStyle.Exception
         };
         e.Result = style2;
     }
 }
示例#4
0
 private void backgroundWorker_1_DoWork(object sender, DoWorkEventArgs e)
 {
     try
     {
         if (base.TaxCardInstance.QYLX.ISTDQY)
         {
             this.bool_0 = true;
         }
         else
         {
             this.bool_0 = false;
             bool     flag2 = true;
             DateTime now   = DateTime.Now;
             bool     flag  = true;
             bool     shouGongShangChuan = false;
             this.class85_0.class90_0.method_0();
             while (!this.backgroundWorker_1.CancellationPending)
             {
                 if (UpLoadCheckState.CheckState())
                 {
                     Thread.Sleep(0x3e8);
                 }
                 else
                 {
                     if ((!bContinuUpload && !flag2) && (!this.class85_0.method_4(now) && !UpLoadCheckState.ShouGongShangChuan))
                     {
                         Thread.Sleep(0x3e8);
                         continue;
                     }
                     if ((!bContinuUpload && !flag) && ((now.AddMinutes((double)(Class87.int_6 / 3)) > DateTime.Now) && !UpLoadCheckState.ShouGongShangChuan))
                     {
                         Thread.Sleep(0x3e8);
                         continue;
                     }
                     shouGongShangChuan = UpLoadCheckState.ShouGongShangChuan;
                     this.class85_0.method_1(false, flag2);
                     if (shouGongShangChuan)
                     {
                         UpLoadCheckState.ShouGongShangChuan = false;
                         shouGongShangChuan = false;
                     }
                     flag  = this.class85_0.method_6();
                     now   = DateTime.Now;
                     flag2 = false;
                     if (bContinuUpload)
                     {
                         bContinuUpload = false;
                     }
                 }
             }
             e.Cancel    = true;
             this.bool_0 = true;
             BackWorkCancleStyle style = new BackWorkCancleStyle {
                 CanclType = CancleStyle.Cancle
             };
             e.Result = style;
             Class101.smethod_0("(上传线程)线程终止,软件准备退出!");
         }
     }
     catch (Exception exception)
     {
         e.Cancel = true;
         BackWorkCancleStyle style2 = new BackWorkCancleStyle {
             CanclType = CancleStyle.Exception
         };
         this.bool_0 = true;
         e.Result    = style2;
         Class101.smethod_1("(上传线程异常:)" + exception.ToString());
     }
 }