示例#1
0
 public void method_22()
 {
     if (this.bool_0)
     {
         List <Class713> list  = new List <Class713>();
         List <Class713> list2 = new List <Class713>();
         int             count = this.dictionary_0.Count;
         float           num5  = 0f;
         for (int i = 0; i < count; i++)
         {
             Class713 item = this.dictionary_0[i];
             if (item.method_30())
             {
                 list.Add(item);
             }
             else
             {
                 list2.Add(item);
             }
         }
         if (list.Count > 0)
         {
             float num4 = 0f;
             foreach (Class713 class3 in list)
             {
                 num4 += (float)Math.Round((double)(class3.method_19() - class3.method_0()));
                 class3.method_1(class3.method_19());
             }
             num5 = num4 / ((float)list2.Count);
         }
         if ((list2.Count > 0) && (num5 != 0f))
         {
             int num2 = 0;
             int num3 = list2.Count;
             while (num2 < num3)
             {
                 float num7 = list2[num2].method_0() - num5;
                 if (num7 >= list2[num2].method_19())
                 {
                     list2[num2].method_1(num7);
                 }
                 else
                 {
                     num5 += num5 / ((float)(num3 - (num2 + 1)));
                 }
                 num2++;
             }
         }
         list.Clear();
         list2.Clear();
     }
 }
示例#2
0
 public void method_31(int A_0, Class713 A_1)
 {
     if (!this.bool_0 && A_1.method_30())
     {
         this.bool_0 = A_1.method_30();
     }
     if (this.bool_1 && (A_1.method_42() != FtsWidth.Point))
     {
         this.bool_1 = false;
     }
     if (this.bool_5 && (A_1.method_42() != FtsWidth.Auto))
     {
         this.bool_5 = false;
     }
     if (this.bool_6 && (A_1.method_42() != FtsWidth.Percentage))
     {
         this.bool_6 = false;
     }
     if (!this.bool_7 && ((A_1.method_42() == FtsWidth.Auto) || (A_1.method_42() == FtsWidth.None)))
     {
         this.bool_7 = true;
     }
     if ((A_1.method_17() == CellMerge.Continue) && !this.bool_2)
     {
         this.bool_2 = true;
     }
     if ((A_1.method_12() == CellMerge.Continue) && !this.bool_3)
     {
         this.bool_3 = true;
     }
     if (A_1.method_14() && !this.bool_4)
     {
         this.bool_4 = true;
     }
     this.dictionary_0.Add(A_0, A_1);
 }