Ejemplo n.º 1
0
    private static void smethod_1(BinaryReader A_0, Class42 A_1)
    {
        bool flag;
        int  num = 0x13;

        if (!(flag = A_0.ReadUInt32() == uint.MaxValue))
        {
            A_0.BaseStream.Seek(-4L, SeekOrigin.Current);
        }
        int           num6 = A_0.ReadUInt16();
        FormFieldType type = ((FormFieldType)num6) & (FormFieldType.DropDown | FormFieldType.CheckBox);

        A_1.method_88(type);
        int num5 = (num6 & 0x7c) >> 2;

        switch (type)
        {
        case FormFieldType.DropDown:
            if (num5 != 0x19)
            {
                A_1.method_84(num5);
            }
            break;
        }
        A_1.method_57((num6 & 0x80) != 0);
        A_1.method_61((num6 & 0x100) != 0);
        A_1.method_49((num6 & 0x200) == 0);
        A_1.method_73((num6 & 0x400) == 0);
        A_1.method_67((TextFormFieldType)((num6 & 0x3800) >> 11));
        A_1.method_51((num6 & 0x4000) != 0);
        bool flag2 = (num6 & 0x8000) != 0;

        A_1.method_65(A_0.ReadUInt16());
        A_1.method_75(A_0.ReadUInt16());
        if (!flag)
        {
            A_0.ReadUInt16();
        }
        A_1.method_47(Class813.smethod_1(A_0, flag, true));
        switch (type)
        {
        case FormFieldType.TextInput:
        {
            string str = Class813.smethod_1(A_0, flag, true);
            if (num5 != 0x19)
            {
                A_1.method_69(str);
            }
            break;
        }

        case FormFieldType.CheckBox:
            A_1.method_77(A_0.ReadUInt16() != 0);
            if (num5 == 0x19)
            {
                A_1.method_79(A_1.method_76());
                break;
            }
            A_1.method_79(num5 != 0);
            break;

        case FormFieldType.DropDown:
            A_1.method_82(A_0.ReadUInt16());
            break;

        default:
            throw new InvalidOperationException(BookmarkStart.b("永唺嘼儾⹀㑂⭄杆⽈⑊㽌≎煐㕒㱔㉖㕘㽚絜⭞ᡠ።d䥦", num));
        }
        A_1.method_71(Class813.smethod_1(A_0, flag, true));
        A_1.method_59(Class813.smethod_1(A_0, flag, true));
        A_1.method_63(Class813.smethod_1(A_0, flag, true));
        A_1.method_53(Class813.smethod_1(A_0, flag, true));
        A_1.method_55(Class813.smethod_1(A_0, flag, true));
        if ((type == FormFieldType.DropDown) && flag2)
        {
            int num3;
            A_0.ReadInt16();
            if (!flag)
            {
                num3 = A_0.ReadInt16();
                A_0.ReadInt16();
                A_0.ReadInt16();
                A_0.ReadInt16();
                A_0.ReadBytes(num3 * 2);
            }
            else
            {
                num3 = A_0.ReadInt32();
            }
            if (num3 <= 0x19)
            {
                for (int i = 0; i < num3; i++)
                {
                    A_1.method_86().Add(Class813.smethod_1(A_0, flag, false));
                }
            }
        }
    }