Beispiel #1
0
    internal static string smethod_15(Class954[] A_0)
    {
        int           num     = 0x13;
        StringBuilder builder = new StringBuilder();

        for (int i = 0; i < A_0.Length; i++)
        {
            if (i == 0)
            {
                builder.Append(string.Format(BookmarkStart.b("䈸଺䀼Ἶ㩀牂㡄籆", num), 0, Class735.smethod_1(A_0[i].color_0)));
            }
            else if (i == (A_0.Length - 1))
            {
                builder.Append(string.Format(BookmarkStart.b("䈸଺䀼Ἶ㩀牂㡄籆", num), 1, Class735.smethod_1(A_0[i].color_0)));
            }
            else
            {
                builder.Append(string.Format(BookmarkStart.b("䈸଺䀼Ἶ㩀牂㡄籆", num), smethod_10(A_0[i].int_0), Class735.smethod_1(A_0[i].color_0)));
            }
        }
        if (builder.Length > 0)
        {
            return(builder.ToString(0, builder.Length - 1));
        }
        return("");
    }
Beispiel #2
0
 internal static string smethod_23(Class1031 A_0)
 {
     if ((A_0 != null) && A_0.method_7())
     {
         return(Class735.smethod_1(A_0.method_12()));
     }
     return("");
 }
Beispiel #3
0
    internal void method_36(string A_0, object A_1)
    {
        int num = 6;

        if (A_1 is bool)
        {
            this.method_40(A_0, ((bool)A_1) ? BookmarkStart.b("堫", num) : BookmarkStart.b("䨫", num));
        }
        else if (A_1 is Color)
        {
            this.method_40(A_0, Class735.smethod_1((Color)A_1));
        }
        else
        {
            this.method_38(A_0, A_1);
        }
    }
Beispiel #4
0
            private void method_0(object sender, DrawItemEventArgs e)
            {
                DxfLineType dxfLineType = (DxfLineType)((ListBox)sender).Items[e.Index];

                e.DrawBackground();
                int x1     = e.Bounds.Left + 1;
                int top    = e.Bounds.Top;
                int num1   = 100;
                int height = e.Bounds.Height;
                int num2   = (e.Bounds.Top + e.Bounds.Bottom) / 2;

                if (dxfLineType.Elements.Count == 0)
                {
                    e.Graphics.DrawLine(Pens.Black, x1, num2, x1 + num1, num2);
                }
                else
                {
                    int    num3 = 3;
                    double num4 = (double)num1 / (3.0 * dxfLineType.TotalLength);
                    double num5 = 0.0;
                    for (int index = 0; index < num3; ++index)
                    {
                        foreach (DxfLineType.Element element in (List <DxfLineType.Element>)dxfLineType.Elements)
                        {
                            double num6 = num5 + System.Math.Abs(element.Length);
                            if (element.Length == 0.0)
                            {
                                Class735.smethod_3(e.Graphics, System.Drawing.Color.Black, x1 + (int)(num4 * num5), num2);
                            }
                            else if (element.Length > 0.0)
                            {
                                e.Graphics.DrawLine(Pens.Black, x1 + (int)(num4 * num5), num2, x1 + (int)(num4 * num6), num2);
                            }
                            num5 = num6;
                        }
                    }
                }
                e.Graphics.DrawString(dxfLineType.ToString(), SystemFonts.DefaultFont, SystemBrushes.ControlText, new RectangleF((float)(x1 + num1 + 3), (float)e.Bounds.Top, (float)(e.Bounds.Right - (x1 + num1) - 3), (float)e.Bounds.Height));
                e.DrawFocusRectangle();
            }
Beispiel #5
0
                public override void Draw(
                    PaintEventArgs e,
                    GraphicsHelper graphicsHelper,
                    InteractionContext context)
                {
                    base.Draw(e, graphicsHelper, context);
                    IControlPointCollection controlPoints = this.Interactor.ControlPoints;
                    Matrix4D matrix4D = context.ProjectionTransform * this.Interactor.Entity.Transform;

                    for (int index = 0; index < controlPoints.Count; ++index)
                    {
                        WW.Math.Point2D position = matrix4D.TransformTo2D(controlPoints.Get(index));
                        switch (controlPoints.GetDisplayType(index))
                        {
                        case PointDisplayType.Default:
                            int x = (int)System.Math.Round(position.X);
                            int y = (int)System.Math.Round(position.Y);
                            Class735.smethod_3(e.Graphics, graphicsHelper.DefaultPen.Color, x, y);
                            break;

                        case PointDisplayType.EditHandle:
                            GdiDrawUtil.DrawEditHandle(e.Graphics, graphicsHelper.DefaultPen, position, context.EditHandleSize);
                            break;

                        case PointDisplayType.CrossHair:
                            int num1 = (int)System.Math.Round(position.X);
                            int num2 = (int)System.Math.Round(position.Y);
                            int x1   = (int)System.Math.Round((double)num1 - 0.5 * context.CrossHairSize);
                            int y1   = (int)System.Math.Round((double)num2 - 0.5 * context.CrossHairSize);
                            int x2   = (int)System.Math.Round((double)num1 + 0.5 * context.CrossHairSize);
                            int y2   = (int)System.Math.Round((double)num2 + 0.5 * context.CrossHairSize);
                            e.Graphics.DrawLine(graphicsHelper.DefaultPen, x1, num2, x2, num2);
                            e.Graphics.DrawLine(graphicsHelper.DefaultPen, num1, y1, num1, y2);
                            break;
                        }
                    }
                }
Beispiel #6
0
    internal void method_0(int A_0, object A_1)
    {
        if (!(A_1 is bool) || ((bool)A_1))
        {
            this.int_0++;
        }
        switch (A_0)
        {
        case 0x200:
            this.string_0 = Class1085.smethod_42((ShadowType)A_1);
            break;

        case 0x201:
            this.string_1 = Class735.smethod_1((Color)A_1);
            return;

        case 0x202:
            this.string_2 = Class735.smethod_1((Color)A_1);
            return;

        case 0x203:
        case 0x20f:
        case 530:
        case 0x213:
        case 0x214:
        case 0x215:
        case 0x216:
        case 0x217:
        case 0x218:
        case 0x219:
        case 0x21a:
        case 0x21b:
            break;

        case 0x204:
            this.string_3 = Class734.smethod_9(A_1);
            return;

        case 0x205:
            this.string_4 = Class734.smethod_0((int)A_1);
            return;

        case 0x206:
            this.string_5 = Class734.smethod_0((int)A_1);
            return;

        case 0x207:
            this.string_6 = Class734.smethod_0((int)A_1);
            return;

        case 520:
            this.string_7 = Class734.smethod_0((int)A_1);
            return;

        case 0x209:
            this.string_8 = Class734.smethod_9(A_1);
            return;

        case 0x20a:
            this.string_9 = Class734.smethod_9(A_1);
            return;

        case 0x20b:
            this.string_10 = Class734.smethod_9(A_1);
            return;

        case 0x20c:
            this.string_11 = Class734.smethod_9(A_1);
            return;

        case 0x20d:
            this.string_12 = Class734.smethod_24((int)A_1);
            return;

        case 0x20e:
            this.string_13 = Class734.smethod_24((int)A_1);
            return;

        case 0x210:
            this.string_14 = Class734.smethod_9(A_1);
            return;

        case 0x211:
            this.string_15 = Class734.smethod_9(A_1);
            return;

        case 0x23e:
            this.string_16 = Class734.smethod_11(A_1, false);
            return;

        case 0x23f:
            this.string_17 = Class734.smethod_11(A_1, false);
            return;

        default:
            return;
        }
    }
Beispiel #7
0
    internal void method_0(int A_0, object A_1)
    {
        this.int_0++;
        switch (A_0)
        {
        case 0x1c0:
            this.string_1 = Class735.smethod_1((Color)A_1);
            this.int_0--;
            return;

        case 0x1c1:
            this.string_2 = Class734.smethod_9(A_1);
            return;

        case 450:
            this.string_3 = Class735.smethod_1((Color)A_1);
            return;

        case 0x1c3:
        case 0x1d9:
        case 0x1da:
        case 0x1db:
        case 0x1e1:
            this.int_0--;
            return;

        case 0x1c4:
            this.string_4 = Class1085.smethod_36((LineFillType)A_1);
            return;

        case 0x1c5:
        case 0x1d8:
        case 0x1dc:
        case 480:
        case 0x1e3:
        case 0x1e4:
        case 0x1e5:
        case 0x1e6:
        case 0x1e7:
        case 0x1e8:
        case 0x1e9:
        case 490:
        case 0x1eb:
        case 0x1ec:
        case 0x1ed:
        case 0x1ee:
        case 0x1ef:
        case 0x1f0:
        case 0x1f1:
        case 0x1f2:
        case 0x1f3:
        case 500:
        case 0x1f5:
        case 0x1f6:
            break;

        case 0x1c6:
            this.string_5 = (string)A_1;
            return;

        case 0x1c7:
        case 0x1c9:
        case 0x1ca:
        case 510:
        case 0x1019:
            this.int_0--;
            return;

        case 0x1c8:
        case 0x1fd:
            this.int_0--;
            return;

        case 0x1cb:
            if (((int)A_1) > 0)
            {
                this.string_6 = Class734.smethod_0((int)A_1);
            }
            this.int_0--;
            break;

        case 460:
        case 0x1ff:
            this.int_0--;
            return;

        case 0x1cd:
            this.string_7 = Class1085.smethod_26((ShapeLineStyle)A_1);
            return;

        case 0x1ce:
            this.string_8 = Class1085.smethod_22((LineDashing)A_1);
            return;

        case 0x1cf:
            this.int_0--;
            return;

        case 0x1d0:
            this.string_9 = Class1085.smethod_34((ArrowType)A_1);
            return;

        case 0x1d1:
            this.string_10 = Class1085.smethod_34((ArrowType)A_1);
            return;

        case 0x1d2:
            this.string_11 = Class1085.smethod_30((StrokeArrowWidth)A_1);
            return;

        case 0x1d3:
            this.string_12 = Class1085.smethod_32((StrokeArrowLength)A_1);
            return;

        case 0x1d4:
            this.string_13 = Class1085.smethod_30((StrokeArrowWidth)A_1);
            return;

        case 0x1d5:
            this.string_14 = Class1085.smethod_32((StrokeArrowLength)A_1);
            return;

        case 470:
            this.string_15 = Class1085.smethod_24((StrokeJoinStyle)A_1);
            return;

        case 0x1d7:
            this.string_16 = Class1085.smethod_28((StrokeEndCap)A_1);
            return;

        case 0x1dd:
        case 0x1de:
        case 0x1df:
        case 0x1e2:
            this.int_0--;
            return;

        case 0x1f7:
            this.int_0--;
            return;

        case 0x1f8:
        case 0x1fa:
            this.int_0--;
            return;

        case 0x1f9:
            this.string_17 = Class734.smethod_12(A_1);
            this.int_0--;
            return;

        case 0x1fb:
            this.int_0--;
            return;

        case 0x1fc:
            this.string_18 = Class734.smethod_12(A_1);
            this.int_0--;
            return;

        case 0x100e:
            this.byte_0 = (byte[])A_1;
            return;

        default:
            return;
        }
    }
Beispiel #8
0
    internal void method_0(int A_0, object A_1)
    {
        switch (A_0)
        {
        case 0x139:
            this.string_12 = Class734.smethod_12(A_1);
            return;

        case 0x13a:
        case 0x13b:
        case 260:
        case 0x105:
        case 0x106:
        case 0x10b:
        case 0x10d:
        case 270:
        case 0x11b:
        case 0x11c:
        case 0x11d:
            break;

        case 0x13c:
            this.string_13 = Class734.smethod_12(A_1);
            return;

        case 0x13d:
            this.string_14 = Class734.smethod_11(A_1, false);
            return;

        case 0x13e:
            this.string_15 = Class734.smethod_11(A_1, false);
            return;

        case 0x13f:
            this.string_16 = Class734.smethod_12(A_1);
            return;

        case 0x1006:
            this.byte_0 = (byte[])A_1;
            return;

        case 0x1007:
            this.string_1 = (string)A_1;
            return;

        case 0x1008:
            this.string_2 = (string)A_1;
            return;

        case 0x100:
            this.string_3 = Class734.smethod_9(A_1);
            return;

        case 0x101:
            this.string_4 = Class734.smethod_9(A_1);
            return;

        case 0x102:
            this.string_5 = Class734.smethod_9(A_1);
            return;

        case 0x103:
            this.string_6 = Class734.smethod_9(A_1);
            return;

        case 0x107:
            this.string_7 = Class735.smethod_1((Color)A_1);
            break;

        case 0x108:
            this.string_8 = Class734.smethod_9(A_1);
            return;

        case 0x109:
            this.string_9 = Class734.smethod_9(A_1);
            return;

        case 0x10a:
            this.string_10 = Class734.smethod_9(A_1);
            return;

        case 0x10c:
        {
            Color color2 = Color.FromArgb((int)A_1);
            this.string_11 = Class735.smethod_1(Color.FromArgb(0xef, color2.B, color2.G, color2.R));
            return;
        }

        case 0x11a:
        {
            Color color = Color.FromArgb((int)A_1);
            this.string_17 = Class735.smethod_1(Color.FromArgb(color.A, color.B, color.G, color.R));
            return;
        }

        default:
            return;
        }
    }
Beispiel #9
0
    internal void method_0(int A_0, object A_1)
    {
        int num = 2;

        if (A_1 is bool)
        {
            switch (A_0)
            {
            case 0x2fb:
            case 0x2fd:
            case 0x2fe:
            case 0x2bf:
                if (!((bool)A_1))
                {
                    this.int_0++;
                }
                goto Label_0072;
            }
            if ((bool)A_1)
            {
                this.int_0++;
            }
        }
        else
        {
            this.int_0++;
        }
Label_0072:
        switch (A_0)
        {
        case 640:
            this.string_0 = Class734.smethod_9(A_1);
            return;

        case 0x281:
            this.string_1 = Class734.smethod_9(A_1);
            return;

        case 0x282:
            this.string_2 = Class1041.smethod_8((int)A_1);
            return;

        case 0x283:
            this.string_3 = Class734.smethod_0((int)A_1);
            return;

        case 0x284:
            this.string_4 = Class734.smethod_0((int)A_1);
            return;

        case 0x285:
            this.string_5 = Class734.smethod_0((int)A_1);
            return;

        case 0x286:
            this.string_6 = Class1085.smethod_38((PlaneType)A_1);
            return;

        case 0x287:
            this.string_7 = Class735.smethod_1((Color)A_1);
            return;

        case 0x288:
        case 0x289:
        case 650:
        case 0x28b:
        case 0x28c:
        case 0x28d:
        case 0x2db:
        case 0x2dc:
        case 0x2dd:
        case 0x2de:
        case 0x2df:
        case 0x2e0:
        case 0x2e1:
        case 0x2e2:
        case 0x2e3:
        case 740:
        case 0x2e5:
        case 0x2e6:
        case 0x2e7:
        case 0x2e8:
        case 0x2e9:
        case 0x2ea:
        case 0x2eb:
        case 0x2ec:
        case 0x2ed:
        case 750:
        case 0x2ef:
        case 0x2f0:
        case 0x2f1:
        case 0x2f2:
        case 0x2f3:
        case 0x2f4:
        case 0x2f5:
        case 0x2f6:
        case 0x2f7:
        case 760:
        case 0x2f9:
        case 0x2fa:
            break;

        case 700:
            this.string_8 = Class734.smethod_11(A_1, false);
            return;

        case 0x2bd:
            this.string_9 = Class734.smethod_11(A_1, false);
            return;

        case 0x2be:
            this.string_10 = Class734.smethod_12(A_1);
            return;

        case 0x2bf:
            this.string_11 = Class734.smethod_11(A_1, true);
            return;

        case 0x2c0:
            this.string_12 = Class734.smethod_9(A_1);
            return;

        case 0x2c1:
            this.string_13 = Class734.smethod_9(A_1);
            return;

        case 0x2c2:
            this.string_14 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2c3:
            this.string_15 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2c4:
            this.string_16 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2c5:
            this.string_17 = Class734.smethod_9(A_1);
            return;

        case 710:
            this.string_18 = Class734.smethod_9(A_1);
            return;

        case 0x2c7:
            this.string_19 = Class734.smethod_9(A_1);
            return;

        case 0x2c8:
            this.string_20 = Class734.smethod_1((int)A_1);
            return;

        case 0x2c9:
            this.string_21 = Class1085.smethod_40((ThreeDRenderMode)A_1);
            return;

        case 0x2ca:
            this.string_22 = Class734.smethod_9(A_1);
            return;

        case 0x2cb:
            this.string_23 = Class734.smethod_1((int)A_1);
            return;

        case 0x2cc:
            this.string_24 = Class734.smethod_1((int)A_1);
            return;

        case 0x2cd:
            this.string_25 = Class734.smethod_1((int)A_1);
            break;

        case 0x2ce:
            this.string_26 = Class734.smethod_9(A_1);
            return;

        case 0x2cf:
            this.string_27 = Class734.smethod_9(A_1);
            return;

        case 720:
            this.string_28 = Class734.smethod_9(A_1);
            return;

        case 0x2d1:
            this.string_29 = Class734.smethod_22((int)A_1);
            return;

        case 0x2d2:
            this.string_30 = Class734.smethod_9(A_1);
            return;

        case 0x2d3:
            this.string_31 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2d4:
            this.string_32 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2d5:
            this.string_33 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2d6:
            this.string_34 = Class734.smethod_9(A_1);
            return;

        case 0x2d7:
            this.string_35 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2d8:
            this.string_36 = Class1041.smethod_8((int)A_1);
            return;

        case 0x2d9:
            this.string_37 = Class1041.smethod_8((int)A_1);
            return;

        case 730:
            this.string_38 = Class734.smethod_9(A_1);
            return;

        case 0x2fb:
            this.string_39 = Class734.smethod_11(A_1, true);
            return;

        case 0x2fc:
            this.string_40 = Class734.smethod_11(A_1, false);
            return;

        case 0x2fd:
            if ((bool)A_1)
            {
                break;
            }
            this.string_41 = BookmarkStart.b("堧伩師崭䀯圱圳䈵儷䰹夻", num);
            return;

        case 0x2fe:
            this.string_42 = Class734.smethod_11(A_1, true);
            return;

        case 0x2ff:
            this.string_43 = Class734.smethod_11(A_1, false);
            return;

        default:
            return;
        }
    }
Beispiel #10
0
 private static void smethod_0()
 {
     Class735.smethod_0();
 }
Beispiel #11
0
    internal void method_0(int A_0, object A_1)
    {
        int num = 2;

        this.int_0++;
        switch (A_0)
        {
        case 0x180:
            this.string_1 = Class1085.smethod_65((FillType)A_1);
            if (((FillType)A_1) != FillType.ShadeCenter)
            {
                if (((FillType)A_1) != FillType.ShadeUnscale)
                {
                    break;
                }
                this.bool_1 = true;
                return;
            }
            this.bool_0 = true;
            return;

        case 0x181:
            this.string_2 = Class735.smethod_1((Color)A_1);
            this.int_0--;
            return;

        case 0x182:
            this.string_3 = Class734.smethod_9(A_1);
            return;

        case 0x183:
            this.string_4 = Class735.smethod_1((Color)A_1);
            return;

        case 0x184:
            this.string_5 = Class734.smethod_9(A_1);
            return;

        case 0x185:
        case 390:
        case 0x188:
        case 0x189:
        case 0x18a:
        case 0x196:
        case 0x19d:
        case 0x1a0:
        case 0x1a1:
        case 0x1a2:
        case 0x1a3:
        case 420:
        case 0x1a5:
        case 0x1a7:
        case 0x1a8:
        case 0x1a9:
        case 0x1aa:
        case 0x1ab:
        case 0x1ac:
        case 0x1ad:
        case 430:
        case 0x1af:
        case 0x1b0:
        case 0x1b1:
        case 0x1b2:
        case 0x1b3:
        case 0x1b4:
        case 0x1b5:
        case 0x1b6:
        case 0x1b7:
        case 440:
        case 0x101a:
            break;

        case 0x187:
            this.string_6 = (string)A_1;
            return;

        case 0x18b:
            this.string_7 = Class734.smethod_9(A_1);
            return;

        case 0x18c:
            this.string_8 = Class734.smethod_22((int)A_1);
            return;

        case 0x18d:
            this.string_9 = Class734.smethod_9(A_1);
            return;

        case 0x18e:
            this.string_10 = Class734.smethod_9(A_1);
            return;

        case 0x18f:
            this.string_11 = Class734.smethod_9(A_1);
            return;

        case 400:
            this.string_12 = Class734.smethod_9(A_1);
            return;

        case 0x191:
            this.string_13 = Class734.smethod_9(A_1);
            return;

        case 0x192:
            this.string_14 = Class734.smethod_9(A_1);
            return;

        case 0x193:
            this.string_15 = Class734.smethod_9(A_1);
            return;

        case 0x194:
            this.string_16 = Class734.smethod_9(A_1);
            return;

        case 0x195:
            this.string_17 = Class1085.smethod_61((FillDimensionType)A_1);
            return;

        case 0x197:
            this.string_18 = Class734.smethod_15((Class954[])A_1);
            return;

        case 0x198:
            this.string_19 = Class734.smethod_9(A_1);
            return;

        case 0x199:
            this.string_20 = Class734.smethod_9(A_1);
            return;

        case 410:
            this.string_21 = Class734.smethod_9(A_1);
            return;

        case 0x19b:
            this.string_22 = Class734.smethod_9(A_1);
            return;

        case 0x19c:
            if (((int)A_1) != 0x4000000b)
            {
                this.string_23 = BookmarkStart.b("䘧䔩䈫䬭", num);
                return;
            }
            this.string_23 = BookmarkStart.b("䐧䌩䈫䬭儯䀱ᐳ䔵儷崹儻弽", num);
            return;

        case 0x19e:
            this.int_0--;
            return;

        case 0x19f:
            this.int_0--;
            return;

        case 0x1a6:
            this.int_0--;
            return;

        case 0x1b9:
            if (!((bool)A_1))
            {
                this.int_0--;
                return;
            }
            this.string_24 = Class734.smethod_12(A_1);
            return;

        case 0x1ba:
            if (!((bool)A_1))
            {
                this.int_0--;
                break;
            }
            this.string_25 = Class734.smethod_12(A_1);
            return;

        case 0x1bb:
            this.string_26 = Class734.smethod_12(A_1);
            this.int_0--;
            return;

        case 0x1bc:
            this.string_27 = Class734.smethod_12(A_1);
            this.int_0--;
            return;

        case 0x1bd:
            this.string_28 = Class734.smethod_13((bool)A_1);
            this.int_0--;
            return;

        case 0x1be:
            this.string_29 = Class734.smethod_12(A_1);
            this.int_0--;
            return;

        case 0x1bf:
            this.string_30 = Class734.smethod_12(A_1);
            return;

        case 0x100f:
            this.byte_0 = (byte[])A_1;
            return;

        default:
            return;
        }
    }