Example #1
0
        public virtual void vmethod_0(Class144 class144_0, int int_1, int int_2, Class140 class140_0, int[] int_3)
        {
            int num  = 0;
            int num2 = 1 << int_2;
            int num3 = (int_2 > 0) ? (class140_0.int_0 >> int_2) : (class140_0.int_0 - int_1);

            this.class143_0.vmethod_0(Math.Max(6, int_2));
            this.class143_0.int_0 = new int[num2];
            for (int i = 0; i < num2; i++)
            {
                int num4 = class144_0.vmethod_10(4);
                this.class143_0.int_0[i] = num4;
                if (num4 < 15)
                {
                    int num5 = (int_2 == 0 || i > 0) ? num3 : (num3 - int_1);
                    class144_0.vmethod_17(int_3, num, num5, num4);
                    num += num5;
                }
                else
                {
                    num4 = class144_0.vmethod_10(5);
                    this.class143_0.int_1[i] = num4;
                    int j = (int_2 == 0 || i > 0) ? 0 : int_1;
                    while (j < num3)
                    {
                        int_3[num] = class144_0.vmethod_12(num4);
                        j++;
                        num++;
                    }
                }
            }
        }
Example #2
0
        public virtual void vmethod_0(Class144 class1440, int int1, int int2, Class140 class1400, int[] int3)
        {
            var num  = 0;
            var num2 = 1 << int2;
            var num3 = (int2 > 0) ? (class1400.Int0 >> int2) : (class1400.Int0 - int1);

            Class1430.vmethod_0(Math.Max(6, int2));
            Class1430.Int0 = new int[num2];
            for (var i = 0; i < num2; i++)
            {
                var num4 = class1440.vmethod_10(4);
                Class1430.Int0[i] = num4;
                if (num4 < 15)
                {
                    var num5 = (int2 == 0 || i > 0) ? num3 : (num3 - int1);
                    class1440.vmethod_17(int3, num, num5, num4);
                    num += num5;
                }
                else
                {
                    num4 = class1440.vmethod_10(5);
                    Class1430.Int1[i] = num4;
                    var j = (int2 == 0 || i > 0) ? 0 : int1;
                    while (j < num3)
                    {
                        int3[num] = class1440.vmethod_12(num4);
                        j++;
                        num++;
                    }
                }
            }
        }
Example #3
0
        public Class134(Class144 class144_0, Class140 class140_1, Class136 class136_0, int int_4, int int_5, int int_6) : base(class140_1, int_5)
        {
            this.int_3 = class136_0.vmethod_2();
            this.int_1 = int_6;
            for (int i = 0; i < int_6; i++)
            {
                this.int_2[i] = class144_0.vmethod_12(int_4);
            }
            int num  = class144_0.vmethod_10(2);
            int num2 = num;

            if (num2 == 0)
            {
                int      int_7  = class144_0.vmethod_10(4);
                Class138 @class = new Class138();
                this.class137_0   = @class;
                @class.int_0      = int_7;
                @class.class143_0 = class136_0.vmethod_1();
                @class.vmethod_0(class144_0, int_6, @class.int_0, class140_1, class136_0.vmethod_2());
                Buffer.BlockCopy(this.int_2, 0, class136_0.vmethod_0(), 0, int_6 << 2);
                BlackMagic.CopyArrayOffset(this.int_3, class140_1.int_0 - int_6, int_6, class136_0.vmethod_0(), int_6);
                return;
            }
            throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM");
        }
Example #4
0
        public Class134(Class144 class1440, Class140 class1401, Class136 class1360, int int4, int int5,
                        int int6) : base(class1401, int5)
        {
            _int3 = class1360.vmethod_2();
            _int1 = int6;
            for (var i = 0; i < int6; i++)
            {
                _int2[i] = class1440.vmethod_12(int4);
            }
            var num  = class1440.vmethod_10(2);
            var num2 = num;

            if (num2 == 0)
            {
                var int7   = class1440.vmethod_10(4);
                var @class = new Class138();
                _class1370       = @class;
                @class.Int0      = int7;
                @class.Class1430 = class1360.vmethod_1();
                @class.vmethod_0(class1440, int6, @class.Int0, class1401, class1360.vmethod_2());
                Buffer.BlockCopy(_int2, 0, class1360.vmethod_0(), 0, int6 << 2);
                BlackMagic.CopyArrayOffset(_int3, class1401.Int0 - int6, int6, class1360.vmethod_0(), int6);
                return;
            }
            throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM");
        }
Example #5
0
 internal Class427(Class52 A_0, Class812 A_1, StyleCollection A_2)
 {
     this.class52_0         = A_0;
     this.styleCollection_0 = A_2;
     this.class141_0        = new Class141(null, A_1);
     this.class140_0        = new Class140(this.class52_0, A_1);
     this.class143_0        = new Class143(null, A_1, NFibEnum.Word2003);
 }
Example #6
0
    // Token: 0x06000008 RID: 8 RVA: 0x00002BC7 File Offset: 0x00000DC7
    public override Class139 vmethod_4()
    {
        Class140 @class = new Class140();

        @class.method_3(this.array_0);
        @class.method_1(base.method_0());
        return(@class);
    }
Example #7
0
 internal Class1060(Class52 A_0, Class812 A_1, ListStyleCollection A_2, Class48 A_3)
 {
     this.listStyleCollection_0 = A_2;
     this.int_0      = this.listStyleCollection_0.Count;
     this.class48_0  = A_3;
     this.class141_0 = new Class141(null, A_1);
     this.class140_0 = new Class140(A_0, A_1);
 }
Example #8
0
 // Token: 0x06001A43 RID: 6723 RVA: 0x0004D944 File Offset: 0x0004BB44
 private void method_1(Class140 data)
 {
     MyGallery.Class210 @class = new MyGallery.Class210();
     @class.class140_0  = data;
     @class.myGallery_0 = this;
     lock (this.object_0)
     {
         this.int_1++;
     }
     this.taskFactory_0.StartNew(new Action(@class.method_0));
 }
Example #9
0
        public Class135(Class144 class1440, Class140 class1401, Class136 class1360, int int7, int int8,
                        int int9) : base(class1401, int8)
        {
            _int6 = class1360.vmethod_2();
            _int1 = int9;
            for (var i = 0; i < int9; i++)
            {
                _int5[i] = class1440.vmethod_12(int7);
            }
            var num = class1440.vmethod_10(4);

            if (num == 15)
            {
                throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC");
            }
            _int2 = num + 1;
            _int3 = class1440.vmethod_12(5);
            for (var j = 0; j < int9; j++)
            {
                _int4[j] = class1440.vmethod_12(_int2);
            }
            var num2 = class1440.vmethod_10(2);
            var num3 = num2;

            if (num3 != 0)
            {
                throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM");
            }
            _class1370 = new Class138();
            ((Class138)_class1370).Int0      = class1440.vmethod_10(4);
            ((Class138)_class1370).Class1430 = class1360.vmethod_1();
            if (_class1370 is Class138)
            {
                ((Class138)_class1370).vmethod_0(class1440, int9, ((Class138)_class1370).Int0, class1401,
                                                 class1360.vmethod_2());
            }
            Buffer.BlockCopy(_int5, 0, class1360.vmethod_0(), 0, int9 << 2);
            if (int7 + _int2 + Class141.smethod_0(int9) > 32)
            {
                Class130.smethod_1(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3,
                                   class1360.vmethod_0(), int9);
                return;
            }
            if (int7 <= 16 && _int2 <= 16)
            {
                Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3,
                                   class1360.vmethod_0(), int9);
                return;
            }
            Class130.smethod_0(class1360.vmethod_2(), class1401.Int0 - int9, _int4, int9, _int3, class1360.vmethod_0(),
                               int9);
        }
Example #10
0
    internal void method_28()
    {
        int num = 0x10;

        Class599.smethod_0(this.document_0.FontInfoList, base.method_5(), base.method_3(), base.method_1());
        Class812 class2 = new Class812(base.method_5(), base.method_3());

        this.class142_0  = new Class142(class2);
        this.class140_0  = new Class140(this.document_0.FontInfoList, class2);
        this.class1109_0 = new Class1109(base.method_4(), class2, base.method_5().nfibEnum_0, this);
        this.class352_0  = new Class352(this.document_0);
        this.class352_0.method_3(base.method_3(), base.method_5().class597_0.class1111_50.int_0, base.method_5().class597_0.class1111_50.int_1, base.method_1());
        if (ShapeObject.smethod_1(this.class352_0.method_12()))
        {
            this.document_0.method_27(new Background(this.document_0, this.class352_0.method_12()));
        }
        new Class427(this.document_0.FontInfoList, class2, this.document_0.Styles).method_0(base.method_3(), base.method_5(), this.method_47());
        new Class1060(this.document_0.FontInfoList, class2, this.document_0.ListStyles, this.document_0.ListOverrides).method_0(base.method_5(), base.method_3(), this.method_47(), this.method_48());
        this.document_0.Frame = Class1152.smethod_0(base.method_5(), base.method_3(), this.document_0.ListStyles);
        Class659.smethod_0(base.method_3(), base.method_5().class597_0.class1111_31, this.document_0);
        if (base.method_5().class597_0.method_6())
        {
            this.document_0.RouteSlip = new Class481(base.method_5(), base.method_3(), this.document_0.Settings.int_27);
        }
        Class342 class3 = new Class342();

        class3.method_0(base.method_3(), base.method_5().class597_0.class1111_72.int_0, base.method_5().class597_0.class1111_72.int_1);
        new Class869().method_0(base.method_3(), base.method_5(), class3, this.document_0.Settings.class460_0);
        base.method_18().method_0(class3, this.document_0.FileName);
        new Class704().method_0(base.method_0().method_0(), this.document_0.BuiltinDocumentProperties, this.document_0.CustomDocumentProperties);
        this.method_31();
        this.method_32();
        this.method_34();
        base.method_3().BaseStream.Position = base.method_5().class597_0.class1111_45.int_0;
        this.document_0.DropdownStrings = base.method_3().ReadBytes(base.method_5().class597_0.class1111_45.int_1);
        base.method_3().BaseStream.Position = base.method_5().class597_0.class1111_24.int_0;
        new Class660().method_0(base.method_3(), base.method_5().class597_0.class1111_24.int_1, this.document_0);
        Class125.smethod_0(base.method_5(), base.method_3(), this.document_0);
        this.document_0.CompObj   = base.method_0().method_0().method_4(BookmarkStart.b("㜵笷唹儻丽༿⁁⹃", num));
        this.document_0.VbaMacros = base.method_0().method_0().method_6(BookmarkStart.b("笵夷夹主儽㌿", num));
        new Class1108(this).method_0();
        if (base.method_5().nfibEnum_0 <= NFibEnum.Word2000)
        {
            this.method_30();
        }
        Class871.smethod_0(base.method_0(), this.document_0.CustomXmlParts);
    }
Example #11
0
        public Class135(Class144 class144_0, Class140 class140_1, Class136 class136_0, int int_7, int int_8, int int_9) : base(class140_1, int_8)
        {
            this.int_6 = class136_0.vmethod_2();
            this.int_1 = int_9;
            for (int i = 0; i < int_9; i++)
            {
                this.int_5[i] = class144_0.vmethod_12(int_7);
            }
            int num = class144_0.vmethod_10(4);

            if (num == 15)
            {
                throw new IOException("STREAM_DECODER_ERROR_STATUS_LOST_SYNC");
            }
            this.int_2 = num + 1;
            this.int_3 = class144_0.vmethod_12(5);
            for (int j = 0; j < int_9; j++)
            {
                this.int_4[j] = class144_0.vmethod_12(this.int_2);
            }
            int num2 = class144_0.vmethod_10(2);
            int num3 = num2;

            if (num3 != 0)
            {
                throw new IOException("STREAM_DECODER_UNPARSEABLE_STREAM");
            }
            this.class137_0 = new Class138();
            ((Class138)this.class137_0).int_0      = class144_0.vmethod_10(4);
            ((Class138)this.class137_0).class143_0 = class136_0.vmethod_1();
            if (this.class137_0 is Class138)
            {
                ((Class138)this.class137_0).vmethod_0(class144_0, int_9, ((Class138)this.class137_0).int_0, class140_1, class136_0.vmethod_2());
            }
            Buffer.BlockCopy(this.int_5, 0, class136_0.vmethod_0(), 0, int_9 << 2);
            if (int_7 + this.int_2 + Class141.smethod_0(int_9) > 32)
            {
                Class130.smethod_1(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9);
                return;
            }
            if (int_7 <= 16 && this.int_2 <= 16)
            {
                Class130.smethod_0(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9);
                return;
            }
            Class130.smethod_0(class136_0.vmethod_2(), class140_1.int_0 - int_9, this.int_4, int_9, this.int_3, class136_0.vmethod_0(), int_9);
        }
Example #12
0
        // Token: 0x06001FC7 RID: 8135 RVA: 0x0006917C File Offset: 0x0006737C
        public void method_6(Class140 data)
        {
            EventHandler eventHandler  = null;
            EventHandler eventHandler2 = null;

            ThumbnailStrip.Class314 @class = new ThumbnailStrip.Class314();
            @class.thumbnailStrip_0 = this;
            ThumbnailContainer thumbnailContainer = null;

            @class.class131_0 = null;
            try
            {
                thumbnailContainer          = new ThumbnailContainer();
                thumbnailContainer.Size     = new Size(178, 146);
                thumbnailContainer.FileName = data.FileName;
                thumbnailContainer.Image    = data.bitmap_0;
                @class.class131_0           = new ThumbnailStrip.Class131(data, thumbnailContainer);
                ThumbnailContainer thumbnailContainer2 = thumbnailContainer;
                if (eventHandler == null)
                {
                    eventHandler = new EventHandler(@class.method_0);
                }
                thumbnailContainer2.ButtonSelected += eventHandler;
                ThumbnailContainer thumbnailContainer3 = thumbnailContainer;
                if (eventHandler2 == null)
                {
                    eventHandler2 = new EventHandler(@class.method_1);
                }
                thumbnailContainer3.ShowScreenshot += eventHandler2;
                this.dictionary_0.Add(@class.class131_0.class140_0.FileName, @class.class131_0);
                this.class299_0.method_0(@class.class131_0);
            }
            catch
            {
                if (thumbnailContainer != null)
                {
                    thumbnailContainer.Dispose();
                }
                if (@class.class131_0 != null)
                {
                    @class.class131_0.Dispose();
                }
                throw;
            }
        }
Example #13
0
 // Token: 0x06001FDA RID: 8154 RVA: 0x0000CD0F File Offset: 0x0000AF0F
 public Class131(Class140 data, ThumbnailContainer control)
 {
     this.class140_0           = data;
     this.thumbnailContainer_0 = control;
 }
Example #14
0
 // Token: 0x06001A55 RID: 6741 RVA: 0x000095AF File Offset: 0x000077AF
 private static bool smethod_0(Class140 item)
 {
     return(item.bitmap_0 != null);
 }
Example #15
0
    // Token: 0x060004E5 RID: 1253 RVA: 0x00028164 File Offset: 0x00026364
    public static Class139 smethod_1(object object_0, Type type_0)
    {
        Class139 @class = object_0 as Class139;

        if (@class != null)
        {
            return(@class);
        }
        if (type_0 == null)
        {
            if (object_0 == null)
            {
                return(new Class166());
            }
            type_0 = object_0.GetType();
        }
        type_0 = Class102.smethod_1(type_0);
        if (type_0 == Class28.type_0)
        {
            @class = new Class166();
            if (object_0 != null && object_0.GetType() != Class28.type_0)
            {
                @class.method_1(object_0.GetType());
            }
        }
        else if (Class99.smethod_0 <Array>(type_0))
        {
            @class = new Class140();
        }
        else if (Class99.smethod_0 <string>(type_0))
        {
            @class = new Class143();
        }
        else if (Class99.smethod_0 <IntPtr>(type_0))
        {
            @class = new Class146();
        }
        else if (Class99.smethod_0 <UIntPtr>(type_0))
        {
            @class = new Class157();
        }
        else if (Class99.smethod_0 <ulong>(type_0))
        {
            @class = new Class165();
        }
        else if (Class99.smethod_0 <uint>(type_0))
        {
            @class = new Class163();
        }
        else if (Class99.smethod_0 <ushort>(type_0))
        {
            @class = new Class159();
        }
        else if (Class99.smethod_0 <long>(type_0))
        {
            @class = new Class156();
        }
        else if (Class99.smethod_0 <int>(type_0))
        {
            @class = new Class145();
        }
        else if (Class99.smethod_0 <short>(type_0))
        {
            @class = new Class141();
        }
        else if (Class99.smethod_0 <byte>(type_0))
        {
            @class = new Class164();
        }
        else if (Class99.smethod_0 <sbyte>(type_0))
        {
            @class = new Class161();
        }
        else if (Class99.smethod_0 <double>(type_0))
        {
            @class = new Class158();
        }
        else if (Class99.smethod_0 <float>(type_0))
        {
            @class = new Class162();
        }
        else if (Class99.smethod_0 <bool>(type_0))
        {
            @class = new Class144();
        }
        else if (Class99.smethod_0 <char>(type_0))
        {
            @class = new Class155();
        }
        else if (Class28.smethod_0(type_0))
        {
            Class166 class2 = new Class166();
            class2.method_1(type_0);
            @class = class2;
        }
        else
        {
            if (Class99.smethod_0 <Enum>(type_0))
            {
                Enum enum_;
                if (object_0 == null)
                {
                    if (type_0 == Class28.type_2)
                    {
                        enum_ = null;
                    }
                    else
                    {
                        enum_ = (Enum)Activator.CreateInstance(type_0);
                    }
                }
                else if (type_0 == Class28.type_2 && object_0 is Enum)
                {
                    enum_ = (Enum)object_0;
                }
                else
                {
                    enum_ = (Enum)Enum.ToObject(type_0, object_0);
                }
                return(new Class160(enum_));
            }
            if (Class99.smethod_0 <ValueType>(type_0))
            {
                if (object_0 == null)
                {
                    object object_;
                    if (type_0 == Class28.type_3)
                    {
                        object_ = null;
                    }
                    else
                    {
                        object_ = Activator.CreateInstance(type_0);
                    }
                    @class = new Class154(object_);
                }
                else
                {
                    if (object_0.GetType() != type_0)
                    {
                        try
                        {
                            object_0 = Convert.ChangeType(object_0, type_0);
                        }
                        catch
                        {
                        }
                    }
                    @class = new Class154(object_0);
                }
                return(@class);
            }
            @class = new Class166();
        }
        if (object_0 != null)
        {
            @class.vmethod_1(object_0);
        }
        return(@class);
    }
Example #16
0
 public Class131(Class140 class140_1, int int_1)
 {
     this.class140_0 = class140_1;
     this.int_0      = int_1;
 }
Example #17
0
 public Class131(Class140 class1401, int int1)
 {
     Class1400 = class1401;
     Int0      = int1;
 }
Example #18
0
 private static int smethod_0(Class140 x, Class140 y)
 {
     return(x.DateCreated.CompareTo(y.DateCreated));
 }
Example #19
0
    public LogonResponse Initialize(string userID, string logonPassword, string serverIP, int serverPort, ICustomizeHandler customizeHandler)
    {
        if (this.emptyAgileLogger_0 == null)
        {
            if (this.string_1 == null)
            {
                this.emptyAgileLogger_0 = new EmptyAgileLogger();
            }
            else
            {
                FileAgileLogger logger = new FileAgileLogger(this.string_1)
                {
                    MaxLength4ChangeFile = 0x100000L
                };
                this.emptyAgileLogger_0 = (EmptyAgileLogger)logger;
            }
        }
        this.eventSafeTrigger_0.AgileLogger = this.emptyAgileLogger_0;
        this.string_0 = logonPassword;
        Class16 class2 = new Class16();
        MessageForbiddenHandler class3 = new MessageForbiddenHandler();

        this.object_0 = Class157.CreateInterface26((Enum6)0);
        int num = (!this.advancedOptions_0.CheckResponseTTL4Query || !this.bool_4) ? 10 : 0;

        this.class72_0 = new Class72(num, this.int_1);
        this.class72_0.SetEngine((IEngine)this.object_0);
        Interface36          interface2 = new Class94((ICommitMessageToServer)this.object_0, class3, null);
        Class79              class4     = new Class79(this.class72_0, interface2);
        BasicMessageTypeRoom room       = new BasicMessageTypeRoom();

        room.Initialize();
        CustomizeMessageTypeRoom room2 = new CustomizeMessageTypeRoom();

        room2.Initialize();
        FileMessageTypeRoom room3 = new FileMessageTypeRoom();

        room3.Initialize();
        P2PSessionMessageTypeRoom room4 = new P2PSessionMessageTypeRoom();

        room4.Initialize();
        FriendsMessageTypeRoom room5 = new FriendsMessageTypeRoom();

        room5.Initialize();
        GroupMessageTypeRoom room6 = new GroupMessageTypeRoom();

        room6.Initialize();
        ContactsMessageTypeRoom room7 = new ContactsMessageTypeRoom();

        room7.Initialize();
        this.class113_0 = new BasicOutter();
        this.class113_0.SetBasicMessageTypeRoom(room);
        this.class113_0.SetActionType(class4);
        this.class113_0.SetStreamContract(class2);
        this.class113_0.SetICommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class113_0.NgadStsqsh += new CbGeneric(this.method_1);
        this.class113_0.method_2(userID);
        this.class71_0 = new Class71(this.class113_0, this.bool_4 ? 0 : this.int_0);
        Class78 class9 = new Class78();

        class9.method_5(this.class113_0);
        class9.method_1(room);
        class9.method_2(class2);
        class9.method_4((ICommitMessageToServer)this.object_0);
        class9.method_3(class4);
        this.class43_0 = new Class43();
        this.class43_0.method_5(class4);
        this.class43_0.method_4(class2);
        this.class43_0.method_3(room2);
        this.class43_0.method_1(userID);
        CustomizeProcess class10 = new CustomizeProcess();

        class10.SetStreamContractHelper(class2);
        class10.SetCustomizeHandler(customizeHandler);
        class10.SetCustomizeMessageTypeRoom(room2);
        class10.SetActionType(class4);
        class10.Event_0 += new CbGeneric <string, int, byte[], string>(this.OnMessageReceived);
        Class75 class7 = new Class75(class4, class2, room4);

        class7.method_1(userID);
        Class24 class8 = new Class24();

        class8.method_0(room4);
        class8.method_1(class2);
        class8.DaTyrcXefU(class7);
        this.class2_0 = new FileTransfering();
        this.class2_0.method_0(this.emptyAgileLogger_0);
        this.class13_0 = new FileHandler();
        this.class13_0.method_0(this.emptyAgileLogger_0);
        this.class2_0.TTL4ResumedFileItem = this.advancedOptions_0.TempFile4ResumedTTL;
        this.class13_0.method_1(class4);
        this.class13_0.method_3(class2);
        this.class13_0.imethod_1(0x100000);
        this.class13_0.method_7(this.advancedOptions_0.UseWorkThreadPool);
        this.class13_0.Initialize(userID, room3.FilePackageData);
        this.class28_0 = new Class28();
        this.class28_0.method_2(this.advancedOptions_0.CheckFileZeroSpeedSpanInSecs);
        this.class28_0.method_0(this.emptyAgileLogger_0);
        this.class28_0.method_13(room3);
        this.class28_0.method_14(class2);
        this.class28_0.method_16(class4);
        this.class28_0.method_12(this.class2_0);
        this.class28_0.method_11(this.class13_0);
        this.class28_0.Initialize(userID);
        Class70 class11 = new Class70();

        class11.method_0(room3);
        class11.method_1(class2);
        class11.method_3(this.class13_0);
        class11.method_2(this.class2_0);
        class11.method_4(this.class28_0);
        this.class126_0 = new FriendsOutter();
        this.class126_0.method_4(class4);
        this.class126_0.method_3(class2);
        this.class126_0.method_2(room5);
        this.class126_0.FriendOffline += new CbGeneric <string>(this.method_6);
        this.class126_0.method_1(userID);
        Class59 class12 = new Class59();

        class12.method_2(class2);
        class12.method_3(this.class126_0);
        class12.method_1(room5);
        this.class19_0 = new GroupOutter2();
        this.class19_0.method_0(class4);
        this.class19_0.uBkeyEkxPJ(class2);
        this.class19_0.Iibebiqvn1(room6);
        this.class19_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.class19_0.GroupmateOffline += new CbGeneric <string>(this.method_7);
        this.class19_0.method_4(userID);
        Class140 class13 = new Class140();

        class13.method_0(room6);
        class13.method_2(this.class19_0);
        class13.method_1(class2);
        this.ContactsOutter_0 = new ContactsOutter();
        this.ContactsOutter_0.method_2(class4);
        this.ContactsOutter_0.SetStreamContract(class2);
        this.ContactsOutter_0.SetMessageType(room7);
        this.ContactsOutter_0.SetCommitMessageToServer((ICommitMessageToServer)this.object_0);
        this.ContactsOutter_0.ContactsOffline += new CbGeneric <string>(this.method_8);
        this.ContactsOutter_0.method_5(userID);
        Class20 class14 = new Class20();

        class14.SetMessageType(room7);
        class14.SetOutter(this.ContactsOutter_0);
        class14.SetStreamContract(class2);
        IProcess[] processers = new IProcess[] { class9, class10, class8, class11, class12, class13, class14 };
        this.class141_0 = new Class141(processers, this.class72_0);
        this.class141_0.method_6(this.advancedOptions_0.AsynMessageQueueEnabled && !this.bool_4);
        this.class141_0.method_7(class4);
        this.class141_0.method_4(this.emptyAgileLogger_0);
        this.class141_0.method_8();
        new Class40(new IMessageTypeRoom[] { room, room2, room3, room4, room5, room6, room7 }, this.class141_0).method_2();
        MessageDispatcher class6 = new MessageDispatcher(new Class144(new Class115(this.class141_0)), class3);

        class6.imethod_0(this.emptyAgileLogger_0);
        this.object_0.SetAgileLogger(this.emptyAgileLogger_0);
        this.object_0.Sock5ProxyInfo = this.sock5ProxyInfo_0;
        this.object_0.SetAgileIPE(new AgileIPE(serverIP, serverPort));
        this.object_0.SetStreamContract(class2);
        this.object_0.imethod_12(class6);
        this.object_0.imethod_10(GlobalUtil.MaxLengthOfMessage);
        this.object_0.AutoReconnect = false;
        this.object_0.imethod_23((this.advancedOptions_0.WriteTimeoutInSecs <= 0) ? -1 : (this.advancedOptions_0.WriteTimeoutInSecs * 0x3e8));
        this.object_0.SocketSendBuffSize           = this.advancedOptions_0.SocketSendBuffSize;
        this.object_0.UncompletedSendingCount4Busy = this.advancedOptions_0.UncompletedSendingCount4Busy;
        this.object_0.ConnectionInterrupted       += new CbGeneric(this.method_5);
        this.object_0.imethod_25(new CbGeneric(this.method_4));
        this.object_0.ConnectionRebuildStart += new CbGeneric(this.method_2);
        this.object_0.Initialize();
        LogonFullResponse response = this.class113_0.method_7(this.systemToken, this.string_0);

        if (response.LogonResult != LogonResult.Succeed)
        {
            this.object_0.OnDispose();
            return(response);
        }
        this.object_0.imethod_27();
        this.bool_0 = response.Boolean_0;
        this.bool_3 = response.GroupRelationEnabled;
        if ((this.bool_0 && this.advancedOptions_0.Boolean_0) && !this.bool_4)
        {
            if (response.UseAsP2PServer && (this.agileIPE_0 == null))
            {
                this.agileIPE_0 = new AgileIPE(this.object_0.GetAgileIPE().String_0, this.object_0.GetAgileIPE().Port + 1);
            }
            if (this.agileIPE_0 != null)
            {
                this.class58_0 = new P2PController();
                this.class58_0.method_6(this.agileIPE_0);
                this.class58_0.method_5(this.emptyAgileLogger_0);
                this.class58_0.method_3((Interface26)this.object_0);
                this.class58_0.method_2(class7);
                this.class58_0.method_4(room4);
                this.class58_0.P2PChannelClosed += new CbGeneric <P2PChannelState>(this.method_3);
                this.class58_0.method_7(userID, this.bool_2);
                interface2.imethod_2(this.class58_0);
                class8.method_2(this.class58_0);
                this.class13_0.method_4(new Class56(this.class58_0));
                this.class19_0.method_1(this.class58_0);
            }
        }
        if (this.bool_2)
        {
            this.class108_0 = new TcpPassiveEngine((Interface26)this.object_0, this.class113_0, this.emptyAgileLogger_0);
            this.class108_0.method_3();
        }
        this.class71_0.method_0();
        this.class113_0.SendHeartBeatMessage();
        this.string_3 = userID;
        this.bool_1   = true;
        this.object_0.AutoReconnect = this.bool_5;
        return(response);
    }
 public override void Visit(Class140 c) { }
 public abstract void Visit(Class140 c);