Пример #1
0
    internal static void smethod_5(Class394 A_0, ParagraphFormat A_1)
    {
        int           num  = 0x10;
        TabCollection tabs = A_1.Tabs;

        while (A_0.method_9(BookmarkStart.b("䈵夷堹伻", num)))
        {
            string str2;
            if (((str2 = A_0.method_1()) == null) || !(str2 == BookmarkStart.b("䈵夷堹", num)))
            {
                continue;
            }
            Tab tab = null;
            TabJustification clear    = TabJustification.Clear;
            TabLeader        noLeader = TabLeader.NoLeader;
            while (A_0.method_19())
            {
                string str = A_0.method_1();
                if (str == null)
                {
                    continue;
                }
                if (str == BookmarkStart.b("䀵夷嘹", num))
                {
                    goto Label_013E;
                }
                if (str == BookmarkStart.b("娵崷嬹堻嬽㈿", num))
                {
                    goto Label_012F;
                }
                if (!(str == BookmarkStart.b("䘵圷䤹", num)))
                {
                    continue;
                }
                float num2 = A_0.method_62();
                if (num2 == float.MaxValue)
                {
                    continue;
                }
                using (IEnumerator enumerator = tabs.GetEnumerator())
                {
                    Tab current;
                    while (enumerator.MoveNext())
                    {
                        current = (Tab)enumerator.Current;
                        if (current.Position == num2)
                        {
                            goto Label_00DB;
                        }
                    }
                    goto Label_00F5;
Label_00DB:
                    tab = current;
                }
Label_00F5:
                if (tab == null)
                {
                    tab = tabs.AddTab();
                }
                if (clear == TabJustification.Clear)
                {
                    tab.Justification  = TabJustification.Left;
                    tab.DeletePosition = num2 * 20f;
                    tab.Position       = 0f;
                }
                else
                {
                    tab.Position = num2;
                }
                continue;
Label_012F:
                noLeader = Class248.smethod_20(A_0.method_3());
                continue;
Label_013E:
                A_0.method_3();
                clear = Class248.smethod_22(A_0.method_3());
            }
            if (clear != TabJustification.Clear)
            {
                tab.Justification = clear;
            }
            tab.TabLeader = noLeader;
        }
    }