Пример #1
0
    private static void smethod_1(RowFormat A_0, Class394 A_1)
    {
        int num = 5;

        RowFormat.TablePositioning positioning = A_0.Positioning;
        A_0.method_53(true);
        float num2 = 0f;
        bool  flag = false;

        while (A_1.method_19())
        {
            string key = A_1.method_1();
            if (key != null)
            {
                int num3;
                if (Class1160.dictionary_152 == null)
                {
                    Dictionary <string, int> dictionary1 = new Dictionary <string, int>(10);
                    dictionary1.Add(BookmarkStart.b("䜪䠬䤮䔰甲䜴堶吸漺堼䜾㕀", num), 0);
                    dictionary1.Add(BookmarkStart.b("太䐬䠮夰䜲猴䔶嘸嘺椼娾㥀㝂", num), 1);
                    dictionary1.Add(BookmarkStart.b("弪䈬弮眰䄲娴娶洸帺䔼䬾", num), 2);
                    dictionary1.Add(BookmarkStart.b("䤪䈬嬮䔰尲場然䬸吺值款⑀㭂ㅄ", num), 3);
                    dictionary1.Add(BookmarkStart.b("崪䠬崮䔰爲嬴吶儸吺似", num), 4);
                    dictionary1.Add(BookmarkStart.b("䌪䈬崮䬰爲嬴吶儸吺似", num), 5);
                    dictionary1.Add(BookmarkStart.b("弪伬䌮䄰欲昴䜶尸堺", num), 6);
                    dictionary1.Add(BookmarkStart.b("弪伬䌮䄰欲", num), 7);
                    dictionary1.Add(BookmarkStart.b("弪伬䌮䄰樲昴䜶尸堺", num), 8);
                    dictionary1.Add(BookmarkStart.b("弪伬䌮䄰樲", num), 9);
                    Class1160.dictionary_152 = dictionary1;
                }
                if (Class1160.dictionary_152.TryGetValue(key, out num3))
                {
                    switch (num3)
                    {
                    case 0:
                        num2 = A_1.method_62();
                        if (num2 != float.MaxValue)
                        {
                            positioning.DistanceFromLeft = num2;
                        }
                        break;

                    case 1:
                        num2 = A_1.method_62();
                        if (num2 != float.MaxValue)
                        {
                            positioning.DistanceFromRight = num2;
                        }
                        break;

                    case 2:
                        num2 = A_1.method_62();
                        if (num2 != float.MaxValue)
                        {
                            positioning.DistanceFromTop = num2;
                        }
                        break;

                    case 3:
                        num2 = A_1.method_62();
                        if (num2 != float.MaxValue)
                        {
                            positioning.DistanceFromBottom = num2;
                        }
                        break;

                    case 4:
                        flag = true;
                        positioning.VertRelationTo = Class417.smethod_12(A_1.method_3());
                        break;

                    case 5:
                    {
                        RelativeHorizontalPosition position = Class417.smethod_15(A_1.method_3());
                        positioning.HorizRelationTo = Class417.smethod_22(position);
                        break;
                    }

                    case 6:
                        positioning.HorizPositionAbs = Class417.smethod_17(A_1.method_3());
                        break;

                    case 7:
                        num2 = A_1.method_62();
                        if (num2 != float.MaxValue)
                        {
                            positioning.HorizPositionEx = num2;
                        }
                        break;

                    case 8:
                        goto Label_021E;

                    case 9:
                        goto Label_023B;
                    }
                }
            }
            continue;
Label_021E:
            if (!flag)
            {
                positioning.VertRelationTo = VerticalRelation.Margin;
            }
            positioning.VertPositionAbs = Class417.smethod_20(A_1.method_3());
            continue;
Label_023B:
            if (!flag)
            {
                positioning.VertRelationTo = VerticalRelation.Margin;
            }
            num2 = A_1.method_62();
            if (num2 != float.MaxValue)
            {
                positioning.VertPositionEx = num2;
            }
        }
    }