Exemple #1
0
    public void method_24(float A_0, TabJustification A_1, TabLeader A_2)
    {
        Class215 class2 = new Class215(A_0, A_1, A_2);

        if (!this.method_26(class2))
        {
            this.list_1.Add(class2);
        }
    }
Exemple #2
0
 internal void method_23()
 {
     for (int i = 0; i < (this.list_1.Count - 1); i++)
     {
         for (int j = i + 1; j < this.list_1.Count; j++)
         {
             if (this.list_1[i].method_4() > this.list_1[j].method_4())
             {
                 Class215 class2 = this.list_1[i];
                 this.list_1[i] = this.list_1[j];
                 this.list_1[j] = class2;
             }
         }
     }
 }
Exemple #3
0
    private bool method_26(Class215 A_0)
    {
        bool flag;

        using (List <Class215> .Enumerator enumerator = this.list_1.GetEnumerator())
        {
            while (enumerator.MoveNext())
            {
                Class215 current = enumerator.Current;
                if (((Math.Round((double)current.method_4(), 2) == Math.Round((double)A_0.method_4(), 2)) && (current.method_0() == A_0.method_0())) && (current.method_2() == A_0.method_2()))
                {
                    goto Label_005C;
                }
            }
            return(false);

Label_005C:
            flag = true;
        }
        return(flag);
    }
 public abstract void Visit(Class215 c);
 public override void Visit(Class215 c) { }
Exemple #6
0
    public double method_22(double A_0, Paragraph A_1 = null)
    {
        double num  = A_0;
        bool   flag = false;

        this.method_23();
        if (this.list_1.Count > 0)
        {
            for (int i = this.list_1.Count - 1; i > -1; i--)
            {
                if ((this.list_1[i].method_4() <= A_0) && ((i <= 0) || (this.list_1[i - 1].method_4() <= A_0)))
                {
                    if (i != (this.list_1.Count - 1))
                    {
                        if (this.list_1[i + 1].method_0() != TabJustification.Bar)
                        {
                            num             = this.list_1[i + 1].method_4();
                            this.class215_0 = this.list_1[i + 1];
                        }
                        else
                        {
                            num = A_0;
                        }
                    }
                    flag = true;
                    break;
                }
            }
            if (!flag && (this.list_1[0].method_0() != TabJustification.Bar))
            {
                num             = this.list_1[0].method_4();
                this.class215_0 = this.list_1[0];
            }
        }
        if (num == A_0)
        {
            this.class215_0 = new Class215();
            float num5 = 0f;
            A_0 -= this.double_2;
            if (this.method_13() > 0.0)
            {
                double num4 = (Math.Round(A_0, 2) - (Math.Round(A_0, 2) % Math.Round(this.method_13(), 2))) / Math.Round(this.method_13(), 2);
                if ((num4 <= 0.0) && ((num4 != 0.0) || (A_0 < 0.0)))
                {
                    num = 0.0;
                }
                else
                {
                    num = (num4 + 1.0) * this.method_13();
                }
            }
            if (this.list_1.Count == 1)
            {
                float num3 = Math.Abs(this.list_1[0].method_4());
                num5 = (this.method_16() > this.method_13()) ? (num3 - ((float)this.method_16())) : (num3 - ((float)this.method_13()));
                if ((num5 > 0f) && (Math.Round(this.method_13()) > 36.0))
                {
                    A_0 += num5;
                }
            }
        }
        if (Math.Round(num, 2) == Math.Round(A_0, 2))
        {
            return(this.method_13());
        }
        return(num - A_0);
    }
Exemple #7
0
 public Class206(ChildrenLayoutDirection A_0) : base(A_0)
 {
     this.list_1     = new List <Class215>();
     this.list_2     = new List <Tab>();
     this.class215_0 = new Class215();
 }