Example #1
0
 public FrmWhatToCopy(GClass32 gclass32_1, WhatToAction whatToAction_1)
 {
     this.InitializeComponent();
     this.bool_0         = whatToAction_1 == WhatToAction.Copy || whatToAction_1 == WhatToAction.Unpack;
     this.whatToAction_0 = whatToAction_1;
     this.title.Text     = gclass32_1.Name;
     this.gclass32_0     = gclass32_1;
     this.Text           = string.Format("What to {0}", (object)whatToAction_1);
     this.label1.Text    = string.Format("Select what you would like to {0}", (object)Enum.GetName(typeof(WhatToAction), (object)whatToAction_1).ToLower());
     if (this.bool_0)
     {
         this.chkCopyGame.Enabled   = gclass32_1.GEnum2_0 == GEnum2.const_2;
         this.chkCopyUpdate.Enabled = gclass32_1.AreThereUpdates && gclass32_1.Updates.Any <GClass33>((Func <GClass33, bool>)(gclass33_0 => gclass33_0.GEnum2_0 == GEnum2.const_2));
         this.chkCopyDlc.Enabled    = gclass32_1.Dlc != null && gclass32_1.Dlc.GEnum2_0 == GEnum2.const_2;
     }
     else
     {
         this.chkCopyGame.Enabled   = (uint)gclass32_1.GEnum2_0 > 0U;
         this.chkCopyUpdate.Enabled = gclass32_1.AreThereUpdates && gclass32_1.Updates.Any <GClass33>((Func <GClass33, bool>)(gclass33_0 => (uint)gclass33_0.GEnum2_0 > 0U));
         this.chkCopyDlc.Enabled    = gclass32_1.Dlc != null && (uint)gclass32_1.Dlc.GEnum2_0 > 0U;
     }
     this.Opacity = 0.0;
 }
        // Token: 0x06000743 RID: 1859 RVA: 0x0003E4C0 File Offset: 0x0003C6C0
        public cf73c09f4e7123594c77f50f36eff3418(c5409344e1c2b74fa8c9a4d620ccb8d48 c6b7fbe462f43433d64916e9273f7e5d1, WhatToAction c21c0267cb55d358b5e842c4f76bdb69d)
        {
            this.c82b8091adcf720aa7a90631953c644c8();
            bool flag;

            if (c21c0267cb55d358b5e842c4f76bdb69d != WhatToAction.Copy)
            {
                for (;;)
                {
                    switch (2)
                    {
                    case 0:
                        continue;
                    }
                    break;
                }
                if (!true)
                {
                    RuntimeMethodHandle runtimeMethodHandle = methodof(cf73c09f4e7123594c77f50f36eff3418..ctor(c5409344e1c2b74fa8c9a4d620ccb8d48, WhatToAction)).MethodHandle;
                }
                flag = (c21c0267cb55d358b5e842c4f76bdb69d == (WhatToAction)cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19684));
            }
            else
            {
                flag = (cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19688) != 0);
            }
            this.cf38f712f785553642b0d58ee2bf5a26f      = flag;
            this.cc80b541ea0aecdb8c28ad57f43ca8ab8      = c21c0267cb55d358b5e842c4f76bdb69d;
            this.c804bc52f7f79bffee6fd394ef382eb76.Text = c6b7fbe462f43433d64916e9273f7e5d1.Name;
            this.c37349fc05fe3d1b830be8a46c71970f7      = c6b7fbe462f43433d64916e9273f7e5d1;
            this.Text = string.Format(ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(69479), c21c0267cb55d358b5e842c4f76bdb69d);
            this.c15d9090b6a70d3a3c645fff30223e3a5.Text = string.Format(ceffa389ee86c0ee26f31dd3efacbdd38.c5dd75c94760bfb37727a44ddc794d278(69502), Enum.GetName(Type.GetTypeFromHandle(ce918f9187f6feb5c61edb19a684b744e.cde4d1aeffe0e705b07e1b3d74e931465()), c21c0267cb55d358b5e842c4f76bdb69d).ToLower());
            if (this.cf38f712f785553642b0d58ee2bf5a26f)
            {
                for (;;)
                {
                    switch (3)
                    {
                    case 0:
                        continue;
                    }
                    break;
                }
                this.cd65a6c8231d20c5f0fa49e0ccf498192.Enabled = (c6b7fbe462f43433d64916e9273f7e5d1.ca435006c85356cb7385a782de8889a0a == (c59ff87f6bdc69ff3440c18f170633236)cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19692));
                Control control = this.c05efd743a6cf51d04078fbb1be078004;
                bool    enabled;
                if (c6b7fbe462f43433d64916e9273f7e5d1.c66201ce2763de795655e645e059b6451)
                {
                    for (;;)
                    {
                        switch (6)
                        {
                        case 0:
                            continue;
                        }
                        break;
                    }
                    IEnumerable <c6a2f8acae5ff1a8a909193a5c5de6687> updates = c6b7fbe462f43433d64916e9273f7e5d1.Updates;
                    Func <c6a2f8acae5ff1a8a909193a5c5de6687, bool>  predicate;
                    if ((predicate = cf73c09f4e7123594c77f50f36eff3418.< > c.c5e57be654d50df4c034b8f0b917ceb75) == null)
                    {
                        for (;;)
                        {
                            switch (3)
                            {
                            case 0:
                                continue;
                            }
                            break;
                        }
                        predicate = (cf73c09f4e7123594c77f50f36eff3418.< > c.c5e57be654d50df4c034b8f0b917ceb75 = new Func <c6a2f8acae5ff1a8a909193a5c5de6687, bool>(cf73c09f4e7123594c77f50f36eff3418.< > c.cdfab1996eb8651828de2a4469aa3481e.c274418e179704d28ef33fa997ccb3b31));
                    }
                    enabled = updates.Any(predicate);
                }
                else
                {
                    enabled = (cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19696) != 0);
                }
                control.Enabled = enabled;
                Control control2 = this.c381384b05f80907c5181f9c6898ce93f;
                bool    enabled2;
                if (c6b7fbe462f43433d64916e9273f7e5d1.Dlc != null)
                {
                    for (;;)
                    {
                        switch (5)
                        {
                        case 0:
                            continue;
                        }
                        break;
                    }
                    enabled2 = (c6b7fbe462f43433d64916e9273f7e5d1.Dlc.ca435006c85356cb7385a782de8889a0a == (c59ff87f6bdc69ff3440c18f170633236)cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19700));
                }
                else
                {
                    enabled2 = (cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19704) != 0);
                }
                control2.Enabled = enabled2;
            }
            else
            {
                this.cd65a6c8231d20c5f0fa49e0ccf498192.Enabled = (c6b7fbe462f43433d64916e9273f7e5d1.ca435006c85356cb7385a782de8889a0a > (c59ff87f6bdc69ff3440c18f170633236)cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19708));
                Control control3 = this.c05efd743a6cf51d04078fbb1be078004;
                bool    enabled3;
                if (c6b7fbe462f43433d64916e9273f7e5d1.c66201ce2763de795655e645e059b6451)
                {
                    for (;;)
                    {
                        switch (5)
                        {
                        case 0:
                            continue;
                        }
                        break;
                    }
                    IEnumerable <c6a2f8acae5ff1a8a909193a5c5de6687> updates2 = c6b7fbe462f43433d64916e9273f7e5d1.Updates;
                    Func <c6a2f8acae5ff1a8a909193a5c5de6687, bool>  predicate2;
                    if ((predicate2 = cf73c09f4e7123594c77f50f36eff3418.< > c.ca6b3bce60a6464e6f649e5051bf8c5d0) == null)
                    {
                        for (;;)
                        {
                            switch (4)
                            {
                            case 0:
                                continue;
                            }
                            break;
                        }
                        predicate2 = (cf73c09f4e7123594c77f50f36eff3418.< > c.ca6b3bce60a6464e6f649e5051bf8c5d0 = new Func <c6a2f8acae5ff1a8a909193a5c5de6687, bool>(cf73c09f4e7123594c77f50f36eff3418.< > c.cdfab1996eb8651828de2a4469aa3481e.ce5bad3b64394b8e2dbe22df44624f70e));
                    }
                    enabled3 = updates2.Any(predicate2);
                }
                else
                {
                    enabled3 = (cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19712) != 0);
                }
                control3.Enabled = enabled3;
                Control control4 = this.c381384b05f80907c5181f9c6898ce93f;
                bool    enabled4;
                if (c6b7fbe462f43433d64916e9273f7e5d1.Dlc != null)
                {
                    for (;;)
                    {
                        switch (2)
                        {
                        case 0:
                            continue;
                        }
                        break;
                    }
                    enabled4 = (c6b7fbe462f43433d64916e9273f7e5d1.Dlc.ca435006c85356cb7385a782de8889a0a > (c59ff87f6bdc69ff3440c18f170633236)cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19716));
                }
                else
                {
                    enabled4 = (cebbdeae8341a51f374f3ef4c993a069a.c6bc1c09ec46e3a402ca1f5ca208c573e(19720) != 0);
                }
                control4.Enabled = enabled4;
            }
            base.Opacity = cebbdeae8341a51f374f3ef4c993a069a.c939ab866f16e312f9914e20d87206d56(19724);
        }
        public c5ac1c83c6771f1d2ec2730d47af7105b(cce1cf1e0b6971ed6f7ef86a83b0959b6 c89cbac13be511053120093fce8049319, WhatToAction c98e063588d8667f7cd2ff9e5891866fd)
        {
            this.\u002Ector();
            this.cfb5cf413352ed4044535eb4a62d2e98f();
            int num1;

            if (c98e063588d8667f7cd2ff9e5891866fd != WhatToAction.Copy)
            {
label_1:
                switch (6)
                {
                case 0:
                    goto label_1;

                default:
                    if (1 == 0)
                    {
                        // ISSUE: method reference
                        RuntimeMethodHandle runtimeMethodHandle = __methodref(c5ac1c83c6771f1d2ec2730d47af7105b.\u002Ector);
                    }
                    num1 = c98e063588d8667f7cd2ff9e5891866fd == (WhatToAction)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11956) ? 1 : 0;
                    break;
                }
            }
            else
            {
                num1 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11960);
            }
            this.c081ad20c5e4d89c184edf191af8142ba = num1 != 0;
            this.cf03615c721382f9adb018993489259dd = c98e063588d8667f7cd2ff9e5891866fd;
            ((Control)this.c36dd98eb0c08ea087627a40c6663c9a8).Text = c89cbac13be511053120093fce8049319.Name;
            this.c96b8e6f4e9f5e44b2fe699369d544613 = c89cbac13be511053120093fce8049319;
            ((Control)this).Text = string.Format(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(18856), (object)c98e063588d8667f7cd2ff9e5891866fd);
            ((Control)this.ce940872bf2d542451e120044788d9340).Text = string.Format(c833fbfa18d441f3acb05d803efdf1eb8.c702a9e4555297107d7c7901aa91e5540(18879), (object)Enum.GetName(Type.GetTypeFromHandle(c1967f7e2d2a97b97b6d65efb2b601f3e.c6804baa30a51e813a45fabcfa2b27b79()), (object)c98e063588d8667f7cd2ff9e5891866fd).ToLower());
            if (this.c081ad20c5e4d89c184edf191af8142ba)
            {
label_7:
                switch (2)
                {
                case 0:
                    goto label_7;

                default:
                    ((Control)this.cd4db08d2fcf3456a34306eebd4dc7244).Enabled = c89cbac13be511053120093fce8049319.c7adb0b831ae9d44c1bc321f4993f8d5d == (cb48a6650cad6d81c80da89dfe58b703a)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11964);
                    RadCheckBox ccfeb6fdd817438a960ed83fed86bda50 = this.ccfeb6fdd817438a960ed83fed86bda50;
                    int         num2;
                    if (c89cbac13be511053120093fce8049319.c2485b5906efc569b1c867e5c900b2e4e)
                    {
label_9:
                        switch (1)
                        {
                        case 0:
                            goto label_9;

                        default:
                            List <ce64fe4baff0b285aaecd02e2cae2ea2c> updates = c89cbac13be511053120093fce8049319.Updates;
                            // ISSUE: reference to a compiler-generated field
                            Func <ce64fe4baff0b285aaecd02e2cae2ea2c, bool> predicate = c5ac1c83c6771f1d2ec2730d47af7105b.\u003C\u003Ec.c56ecc1d647404f5e2c4554f0ef3b419f;
                            if (predicate == null)
                            {
label_11:
                                switch (4)
                                {
                                case 0:
                                    goto label_11;

                                default:
                                    // ISSUE: reference to a compiler-generated field
                                    // ISSUE: reference to a compiler-generated field
                                    // ISSUE: reference to a compiler-generated method
                                    predicate = c5ac1c83c6771f1d2ec2730d47af7105b.\u003C\u003Ec.c56ecc1d647404f5e2c4554f0ef3b419f = new Func <ce64fe4baff0b285aaecd02e2cae2ea2c, bool>(c5ac1c83c6771f1d2ec2730d47af7105b.\u003C\u003Ec.c77621037b5e8518f08b9304f2b861f38.cc89a5ac07fd01e620922a666b59cd3fe);
                                    break;
                                }
                            }
                            num2 = updates.Any <ce64fe4baff0b285aaecd02e2cae2ea2c>(predicate) ? 1 : 0;
                            break;
                        }
                    }
                    else
                    {
                        num2 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11968);
                    }
                    ((Control)ccfeb6fdd817438a960ed83fed86bda50).Enabled = num2 != 0;
                    RadCheckBox c9454a5157d9a45a9ac8ddd9ea1de4a2c = this.c9454a5157d9a45a9ac8ddd9ea1de4a2c;
                    int         num3;
                    if (c89cbac13be511053120093fce8049319.Dlc != null)
                    {
label_16:
                        switch (2)
                        {
                        case 0:
                            goto label_16;

                        default:
                            num3 = c89cbac13be511053120093fce8049319.Dlc.c7adb0b831ae9d44c1bc321f4993f8d5d == (cb48a6650cad6d81c80da89dfe58b703a)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11972) ? 1 : 0;
                            break;
                        }
                    }
                    else
                    {
                        num3 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11976);
                    }
                    ((Control)c9454a5157d9a45a9ac8ddd9ea1de4a2c).Enabled = num3 != 0;
                    break;
                }
            }
            else
            {
                ((Control)this.cd4db08d2fcf3456a34306eebd4dc7244).Enabled = (uint)c89cbac13be511053120093fce8049319.c7adb0b831ae9d44c1bc321f4993f8d5d > (uint)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11980);
                RadCheckBox ccfeb6fdd817438a960ed83fed86bda50 = this.ccfeb6fdd817438a960ed83fed86bda50;
                int         num2;
                if (c89cbac13be511053120093fce8049319.c2485b5906efc569b1c867e5c900b2e4e)
                {
label_21:
                    switch (5)
                    {
                    case 0:
                        goto label_21;

                    default:
                        List <ce64fe4baff0b285aaecd02e2cae2ea2c> updates = c89cbac13be511053120093fce8049319.Updates;
                        // ISSUE: reference to a compiler-generated field
                        Func <ce64fe4baff0b285aaecd02e2cae2ea2c, bool> predicate = c5ac1c83c6771f1d2ec2730d47af7105b.\u003C\u003Ec.cd8eb5ab47043e58b9ae39d42f7bcb156;
                        if (predicate == null)
                        {
label_23:
                            switch (6)
                            {
                            case 0:
                                goto label_23;

                            default:
                                // ISSUE: reference to a compiler-generated field
                                // ISSUE: reference to a compiler-generated field
                                // ISSUE: reference to a compiler-generated method
                                predicate = c5ac1c83c6771f1d2ec2730d47af7105b.\u003C\u003Ec.cd8eb5ab47043e58b9ae39d42f7bcb156 = new Func <ce64fe4baff0b285aaecd02e2cae2ea2c, bool>(c5ac1c83c6771f1d2ec2730d47af7105b.\u003C\u003Ec.c77621037b5e8518f08b9304f2b861f38.c8a78d477b91bc7582713b6bd2a84c33d);
                                break;
                            }
                        }
                        num2 = updates.Any <ce64fe4baff0b285aaecd02e2cae2ea2c>(predicate) ? 1 : 0;
                        break;
                    }
                }
                else
                {
                    num2 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11984);
                }
                ((Control)ccfeb6fdd817438a960ed83fed86bda50).Enabled = num2 != 0;
                RadCheckBox c9454a5157d9a45a9ac8ddd9ea1de4a2c = this.c9454a5157d9a45a9ac8ddd9ea1de4a2c;
                int         num3;
                if (c89cbac13be511053120093fce8049319.Dlc != null)
                {
label_28:
                    switch (4)
                    {
                    case 0:
                        goto label_28;

                    default:
                        num3 = (uint)c89cbac13be511053120093fce8049319.Dlc.c7adb0b831ae9d44c1bc321f4993f8d5d > (uint)cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11988) ? 1 : 0;
                        break;
                    }
                }
                else
                {
                    num3 = cb85779efa5f9c78fa841b92dceca9094.c4f3ad310245f8f6e7d32122c50c48ab1(11992);
                }
                ((Control)c9454a5157d9a45a9ac8ddd9ea1de4a2c).Enabled = num3 != 0;
            }
            ((Form)this).Opacity = cb85779efa5f9c78fa841b92dceca9094.cc355471519aa13f05c72ce1708ca5624(11996);
        }