Ejemplo n.º 1
0
 public void method_32(int A_0, Class713 A_1, int A_2)
 {
     A_1.method_23(true);
     A_1.method_25(true);
     A_1.method_27(A_2);
     this.dictionary_0.Add(A_0, A_1);
 }
Ejemplo n.º 2
0
    internal Class721 method_27(Dictionary <int, Class713> A_0, float A_1)
    {
        Class721 class2 = new Class721();
        Dictionary <int, Class713> dictionary = new Dictionary <int, Class713>();
        float num  = 0f;
        float num2 = A_1 / ((float)A_0.Count);

        foreach (KeyValuePair <int, Class713> pair in A_0)
        {
            Class713 class3 = pair.Value;
            if (class3.method_35() <= num2)
            {
                class3.method_1(class3.method_37());
                A_1 -= class3.method_37();
            }
            else if ((A_0.Count == 1) && (class3.method_37() > num2))
            {
                class3.method_1(num2);
                class2.method_9(new ushort?((ushort)pair.Value.method_10()));
                class2.method_3(num2);
                class2.method_5(class3.method_19());
                class2.method_7(class3.method_40());
                class2.float_4 = class3.method_31();
                class2.method_11(true);
            }
            else
            {
                dictionary.Add(pair.Key, pair.Value);
                num += class3.method_19();
            }
        }
        if (dictionary.Count > 0)
        {
            if (dictionary.Count < A_0.Count)
            {
                return(this.method_27(dictionary, A_1));
            }
            foreach (KeyValuePair <int, Class713> pair2 in dictionary)
            {
                Class713 class4 = pair2.Value;
                if (num != 0f)
                {
                    class4.method_1(A_1 * (class4.method_19() / num));
                }
                else
                {
                    class4.method_1(num2);
                }
            }
        }
        return(class2);
    }
Ejemplo n.º 3
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();
     }
 }
Ejemplo n.º 4
0
 public void method_24(float A_0)
 {
     if (this.method_10() && (!this.method_10() || (this.method_14() != 0f)))
     {
         List <Class713> list  = new List <Class713>();
         int             count = this.dictionary_0.Count;
         float           num3  = A_0;
         for (int i = 0; i < count; i++)
         {
             Class713 item = this.dictionary_0[i];
             if (item.method_21())
             {
                 list.Add(item);
             }
             else if (item.method_0() > 0f)
             {
                 num3 -= item.method_0();
             }
             else if (item.method_19() > 0f)
             {
                 num3 -= item.method_19();
             }
             else
             {
                 num3 -= item.method_4();
             }
         }
         if (list.Count > 0)
         {
             float num4 = num3 / ((float)list.Count);
             foreach (Class713 class2 in list)
             {
                 class2.method_1(num4);
             }
         }
         list.Clear();
     }
 }
Ejemplo n.º 5
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);
 }