예제 #1
0
 // Token: 0x060027B5 RID: 10165 RVA: 0x00092FE0 File Offset: 0x000911E0
 private void method_3(Class177 district, Struct26?state)
 {
     this.nullable_0 = null;
     this.nullable_1 = null;
     if (state != null && district != null)
     {
         this.nullable_1    = new TimeSpan?(DateTime.Now - state.Value.dateTime_0);
         this.ledDisplay.On = true;
         Struct26 value = state.Value;
         this.method_4(value.class464_0.enum132_0);
         this.lblCog.Text         = value.class464_0.string_0;
         this.lblCogType.Text     = value.class464_0.enum132_0.smethod_0();
         this.lblTimeElapsed.Text = Invasions.smethod_0(this.nullable_1.Value);
         if (this.nullable_0 != null)
         {
             this.lblTimeRemaining.Text = Invasions.smethod_0(this.nullable_0.Value);
         }
         else
         {
             this.lblTimeRemaining.Text = "Unknown";
         }
         this.timer_0.Enabled = true;
     }
     else
     {
         this.timer_0.Enabled = false;
         this.ledDisplay.On   = false;
         this.method_4(Enum132.const_0);
         this.lblCog.Text           = "None";
         this.lblCogType.Text       = "None";
         this.lblTimeElapsed.Text   = "00:00";
         this.lblTimeRemaining.Text = "00:00";
     }
     this.method_7();
 }
예제 #2
0
 // Token: 0x060027B9 RID: 10169 RVA: 0x00093254 File Offset: 0x00091454
 private void method_5(DateTime startTime)
 {
     if (startTime < DateTime.Now - this.nullable_1.Value)
     {
         this.nullable_1          = new TimeSpan?(DateTime.Now - startTime);
         this.lblTimeElapsed.Text = Invasions.smethod_0(this.nullable_1.Value);
     }
 }
예제 #3
0
 private void method_11()
 {
     if (this.nullable_1 != null)
     {
         this.nullable_1          = new TimeSpan?(this.nullable_1.Value.Add(Invasions.timeSpan_0));
         this.lblTimeElapsed.Text = Invasions.smethod_0(this.nullable_1.Value);
         if (this.nullable_0 != null && this.nullable_0.Value.TotalSeconds > 0.0)
         {
             this.nullable_0            = new TimeSpan?(this.nullable_0.Value.Subtract(Invasions.timeSpan_0));
             this.lblTimeRemaining.Text = Invasions.smethod_0(this.nullable_0.Value);
             this.method_7();
         }
     }
 }
예제 #4
0
        // Token: 0x060027BA RID: 10170 RVA: 0x000932B0 File Offset: 0x000914B0
        private void method_6(DateTime startTime, uint estimatedDuration)
        {
            DateTime dateTime = startTime + new TimeSpan(0, 0, (int)estimatedDuration);
            DateTime now      = DateTime.Now;

            if (now > dateTime)
            {
                this.nullable_0 = new TimeSpan?(TimeSpan.Zero);
            }
            else
            {
                this.nullable_0 = new TimeSpan?(dateTime - now);
            }
            this.lblTimeRemaining.Text = Invasions.smethod_0(this.nullable_0.Value);
        }