// Token: 0x060019A2 RID: 6562 RVA: 0x00046654 File Offset: 0x00044854
 private void timer_1_Tick(object sender, EventArgs e)
 {
     lock (this.object_0)
     {
         Enum74 @enum = this.enum74_0;
         if (@enum != Enum74.const_1)
         {
             if (@enum != Enum74.const_7)
             {
                 this.timer_1.Enabled = false;
                 goto IL_1A1;
             }
         }
         if (this.nullable_2 != null)
         {
             string text = null;
             string arg  = string.Format(Class313.class196_0, "{0}", new object[]
             {
                 this.nullable_2.Value
             });
             Enum74 enum2 = this.enum74_0;
             if (enum2 != Enum74.const_1)
             {
                 if (enum2 == Enum74.const_7)
                 {
                     text = string.Format(Installing.string_17, arg);
                 }
             }
             else
             {
                 text = string.Format(Installing.string_19, arg);
             }
             if (this.nullable_3 != null && this.nullable_0 != null && this.nullable_1 != null && this.nullable_1.Value > this.nullable_0.Value)
             {
                 double totalMilliseconds = (DateTime.Now - this.nullable_3.Value).TotalMilliseconds;
                 long   num  = this.nullable_1.Value - this.nullable_0.Value;
                 long   num2 = (long)((double)num / totalMilliseconds * 1000.0);
                 text += string.Format(Class313.class196_0, " @ {0}/s)", new object[]
                 {
                     num2
                 });
             }
             else
             {
                 text += ")";
             }
             this.lblStatus.Text = text;
         }
         this.nullable_3 = new DateTime?(DateTime.Now);
         this.nullable_0 = this.nullable_1;
         this.nullable_1 = null;
         IL_1A1:;
     }
 }
 // Token: 0x0600260E RID: 9742 RVA: 0x00010DB8 File Offset: 0x0000EFB8
 public EventArgs33(Enum74 installerState, Enum66 installFailureType) : this(installerState)
 {
     this.InstallFailureType = installFailureType;
 }
 // Token: 0x0600260D RID: 9741 RVA: 0x00010DA9 File Offset: 0x0000EFA9
 public EventArgs33(Enum74 installerState)
 {
     this.InstallerState = installerState;
 }
Example #4
0
 // Token: 0x06002E53 RID: 11859
 // RVA: 0x0012C8D8 File Offset: 0x0012AAD8
 public Maintenance(Enum74 enum74_0)
 {
     this.InitializeComponent();
     switch (enum74_0)
     {
     case Enum74.const_0:
         this.backgroundWorker_0.DoWork += new DoWorkEventHandler(this.backgroundWorker_0_DoWork_2);
         break;
     case Enum74.const_1:
         this.backgroundWorker_0.DoWork += new DoWorkEventHandler(this.backgroundWorker_0_DoWork_3);
         break;
     case Enum74.const_2:
         if (!Class905.bool_1)
         {
             base.TopMost = false;
         }
         base.ShowInTaskbar = true;
         this.Text = "osu! updater";
         this.backgroundWorker_0.DoWork += new DoWorkEventHandler(this.backgroundWorker_0_DoWork_1);
         break;
     case Enum74.const_3:
         if (!Class905.bool_1)
         {
             base.TopMost = false;
         }
         base.ShowInTaskbar = true;
         this.Text = "osu! uninstaller";
         this.backgroundWorker_0.DoWork += new DoWorkEventHandler(this.backgroundWorker_0_DoWork);
         break;
     }
     this.backgroundWorker_0.WorkerReportsProgress = true;
     this.backgroundWorker_0.ProgressChanged += new ProgressChangedEventHandler(this.backgroundWorker_0_ProgressChanged);
     this.backgroundWorker_0.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this.backgroundWorker_0_RunWorkerCompleted);
     this.backgroundWorker_0.RunWorkerAsync();
     this.timer_1.Tick += new EventHandler(this.timer_1_Tick);
     this.timer_1.Interval = 10;
     this.timer_1.Start();
 }