Пример #1
0
 // Token: 0x060000CD RID: 205 RVA: 0x000025CE File Offset: 0x000025CE
 private static void backgroundWorker_RunWorkerCompleted(object sender, RunWorkerCompletedEventArgs e)
 {
     if (!Convert.ToBoolean(e.Result))
     {
         MessageBox.Show(Texts.GetText("NONETWORK", new object[0]));
         Application.Exit();
         return;
     }
     ListDownloader.DownloadList();
 }
Пример #2
0
 // Token: 0x06000069 RID: 105 RVA: 0x000060B8 File Offset: 0x000060B8
 public static void UpdateCompleteProgress(long Value)
 {
     if (Value >= 0L && Value <= 100L)
     {
         Globals.pForm.completeProgress.Value    = Convert.ToInt32(Value);
         Globals.pForm.completeProgressText.Text = Texts.GetText("COMPLETEPROGRESS", new object[]
         {
             Value
         });
         return;
     }
 }
Пример #3
0
 // Token: 0x0600006A RID: 106 RVA: 0x0000611C File Offset: 0x0000611C
 public static void UpdateCurrentProgress(long Value, double Speed)
 {
     if (Value >= 0L && Value <= 100L)
     {
         Globals.pForm.currentProgress.Value    = Convert.ToInt32(Value);
         Globals.pForm.currentProgressText.Text = Texts.GetText("CURRENTPROGRESS", new object[]
         {
             Value,
             Speed.ToString("0.00")
         });
         return;
     }
 }
Пример #4
0
 // Token: 0x0600007B RID: 123 RVA: 0x00006454 File Offset: 0x00006454
 public static void CheckFiles()
 {
     FileChecker.backgroundWorker.WorkerReportsProgress = true;
     FileChecker.backgroundWorker.DoWork             += FileChecker.backgroundWorker_DoWork;
     FileChecker.backgroundWorker.ProgressChanged    += FileChecker.backgroundWorker_ProgressChanged;
     FileChecker.backgroundWorker.RunWorkerCompleted += FileChecker.backgroundWorker_RunWorkerCompleted;
     if (FileChecker.backgroundWorker.IsBusy)
     {
         MessageBox.Show(Texts.GetText("UNKNOWNERROR", new object[]
         {
             "CheckFiles isBusy"
         }));
         Application.Exit();
         return;
     }
     FileChecker.backgroundWorker.RunWorkerAsync();
 }
Пример #5
0
        // Token: 0x060000CB RID: 203 RVA: 0x00009028 File Offset: 0x00009028
        public static void CheckNetwork()
        {
            Common.ChangeStatus("CONNECTING", new string[0]);
            BackgroundWorker backgroundWorker = new BackgroundWorker();

            backgroundWorker.DoWork             += Networking.backgroundWorker_DoWork;
            backgroundWorker.RunWorkerCompleted += Networking.backgroundWorker_RunWorkerCompleted;
            if (backgroundWorker.IsBusy)
            {
                MessageBox.Show(Texts.GetText("UNKNOWNERROR", new object[]
                {
                    "CheckNetwork isBusy"
                }));
                Application.Exit();
                return;
            }
            backgroundWorker.RunWorkerAsync();
        }
Пример #6
0
        // Token: 0x060000C1 RID: 193 RVA: 0x00008C30 File Offset: 0x00008C30
        public static void DownloadList()
        {
            BackgroundWorker backgroundWorker = new BackgroundWorker();

            Common.ChangeStatus("LISTDOWNLOAD", new string[0]);
            backgroundWorker.DoWork             += ListDownloader.backgroundWorker_DoWork;
            backgroundWorker.RunWorkerCompleted += ListDownloader.backgroundWorker_RunWorkerCompleted;
            if (backgroundWorker.IsBusy)
            {
                MessageBox.Show(Texts.GetText("UNKNOWNERROR", new object[]
                {
                    "DownloadList isBusy"
                }));
                Application.Exit();
                return;
            }
            backgroundWorker.RunWorkerAsync();
        }
Пример #7
0
 // Token: 0x06000068 RID: 104 RVA: 0x00006090 File Offset: 0x00006090
 public static void ChangeStatus(string Key, params string[] Arguments)
 {
     Globals.pForm.Status.Text = Texts.GetText(Key, Arguments);
 }