Esempio n. 1
0
        // Token: 0x06001829 RID: 6185 RVA: 0x0004131C File Offset: 0x0003F51C
        private void method_6(object sender, EventArgs39 e)
        {
            Class492 @class = Class492.smethod_0(e.Message);

            switch (@class.Action)
            {
            case Enum93.const_1:
                this.process_0 = Process.GetProcessById(@class.ProcessID);
                return;

            case Enum93.const_3:
                this.class148_0.method_5();
                this.method_4();
                this.process_0 = Process.GetProcessById(@class.ProcessID);
                this.method_7(@class.ExtraData[0]);
                if (!this.class148_0.Connected && this.eventHandler_4 != null)
                {
                    this.eventHandler_4(this, new EventArgs38(new Class492(Enum28.const_0, this.UpdateStep, this.UpdaterExitedPrematurely_Title, "Failed to connect to the new version of wyUpdate.exe")));
                }
                this.method_18(new Class492(this.UpdateStep));
                return;
            }
            if (@class.UpdateStep != this.UpdateStep)
            {
                Enum87 updateStep = this.UpdateStep;
                this.UpdateStep = @class.UpdateStep;
                if (this.eventHandler_2 != null)
                {
                    this.eventHandler_2(this, new EventArgs28(@class.ResponseType, updateStep));
                }
            }
            if (@class.Action == Enum93.const_0 && @class.UpdateStep == Enum87.const_4)
            {
                this.int_2 = @class.ProcessID;
            }
            if (@class.ResponseType != Enum28.const_1 && this.eventHandler_3 != null)
            {
                this.eventHandler_3(this, new EventArgs38(@class));
            }
        }