Пример #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);
        }
Пример #5
0
        // Token: 0x060027BE RID: 10174 RVA: 0x00093474 File Offset: 0x00091674
        private void cboDistricts_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.cboDistricts.SelectedItem == null)
            {
                this.method_3(null, null);
                return;
            }
            Invasions.Class430 @class = this.cboDistricts.SelectedItem as Invasions.Class430;
            Class142           class2 = Invasions.smethod_1(@class.Windows);

            if (class2 == null)
            {
                this.method_3(null, null);
                return;
            }
            this.method_3(class2.District, class2.Invasion);
            Struct26 value = class2.Invasion.Value;

            this.method_8(class2.District, value.class464_0.string_1, value.uint_0, value.bool_0, value.dateTime_0);
        }