Exemple #1
0
 // Token: 0x060009A7 RID: 2471 RVA: 0x00037FA0 File Offset: 0x000361A0
 private bool method_35(object object_0)
 {
     return((this.jsonSerializer_0.nullValueHandling_0 != NullValueHandling.Ignore || object_0 != null) && (!this.method_25(this.jsonSerializer_0.defaultValueHandling_0, DefaultValueHandling.Ignore) || (object_0 != null && !Class80.smethod_0(object_0, Class90.smethod_43(object_0.GetType())))));
 }
            // Token: 0x060019B4 RID: 6580 RVA: 0x0004721C File Offset: 0x0004541C
            public void method_0()
            {
                this.installing_0.enum74_0 = this.eventArgs33_0.InstallerState;
                switch (this.eventArgs33_0.InstallerState)
                {
                case Enum74.const_0:
                    this.installing_0.timer_1.Enabled = false;
                    this.installing_0.method_8(ProgressBarStyle.Marquee);
                    this.installing_0.lblStatus.Text = Installing.string_5;
                    return;

                case Enum74.const_1:
                    this.installing_0.method_4();
                    this.installing_0.method_8(ProgressBarStyle.Continuous);
                    this.installing_0.lblStatus.Text  = Installing.string_18;
                    this.installing_0.timer_1.Enabled = true;
                    return;

                case Enum74.const_2:
                    this.installing_0.timer_1.Enabled = false;
                    this.installing_0.method_8(ProgressBarStyle.Marquee);
                    this.installing_0.lblStatus.Text = Installing.string_6;
                    return;

                case Enum74.const_3:
                    this.installing_0.timer_1.Enabled = false;
                    this.installing_0.method_8(ProgressBarStyle.Marquee);
                    this.installing_0.lblStatus.Text = Installing.string_11;
                    return;

                case Enum74.const_4:
                    this.installing_0.timer_1.Enabled = false;
                    this.installing_0.method_8(ProgressBarStyle.Marquee);
                    this.installing_0.lblStatus.Text = Installing.string_10;
                    return;

                case Enum74.const_5:
                    this.installing_0.timer_1.Enabled = false;
                    switch (this.eventArgs33_0.InstallFailureType)
                    {
                    case Enum66.const_0:
                        this.installing_0.method_8(ProgressBarStyle.Continuous);
                        this.installing_0.lblStatus.Text    = Installing.string_8;
                        this.installing_0.barProgress.Value = 100;
                        this.installing_0.btnAbort.Enabled  = false;
                        if (Class80.smethod_0(this.installing_0.ServerType, this.installing_0.string_20, this.installing_0.dictionary_0, out this.installing_0.class142_0))
                        {
                            this.installing_0.timer_0.Enabled = true;
                            return;
                        }
                        this.installing_0.InstallerResult = Enum42.const_4;
                        this.installing_0.Close();
                        return;

                    case Enum66.const_1:
                        this.installing_0.InstallerResult = Enum42.const_6;
                        this.installing_0.Close();
                        return;

                    case Enum66.const_2:
                        this.installing_0.InstallerResult = Enum42.const_1;
                        this.installing_0.Close();
                        return;

                    case Enum66.const_3:
                        this.installing_0.InstallerResult = Enum42.const_3;
                        this.installing_0.Close();
                        return;

                    default:
                        return;
                    }
                    break;

                case Enum74.const_6:
                    this.installing_0.timer_1.Enabled = false;
                    this.installing_0.method_8(ProgressBarStyle.Marquee);
                    this.installing_0.lblStatus.Text = Installing.string_15;
                    return;

                case Enum74.const_7:
                    this.installing_0.method_4();
                    this.installing_0.method_8(ProgressBarStyle.Continuous);
                    this.installing_0.lblStatus.Text  = Installing.string_16;
                    this.installing_0.timer_1.Enabled = true;
                    return;

                case Enum74.const_8:
                    this.installing_0.timer_1.Enabled = false;
                    this.installing_0.method_8(ProgressBarStyle.Continuous);
                    this.installing_0.lblStatus.Text = Installing.string_9;
                    return;

                case Enum74.const_9:
                    this.installing_0.timer_1.Enabled = false;
                    this.installing_0.method_8(ProgressBarStyle.Marquee);
                    this.installing_0.lblStatus.Text = Installing.string_7;
                    return;

                default:
                    return;
                }
            }
Exemple #3
0
 // Token: 0x0600098F RID: 2447 RVA: 0x00036EA0 File Offset: 0x000350A0
 private bool method_12(object object_0, JsonObjectContract jsonObjectContract_0, JsonProperty jsonProperty_0)
 {
     return((object_0 != null || base.method_1(jsonObjectContract_0, jsonProperty_0) != NullValueHandling.Ignore) && (!this.method_25(jsonProperty_0.DefaultValueHandling.GetValueOrDefault(this.jsonSerializer_0.defaultValueHandling_0), DefaultValueHandling.Ignore) || !Class80.smethod_0(object_0, jsonProperty_0.method_2())));
 }
Exemple #4
0
        public virtual void vmethod_2(Class95 firstLoop, Class608 wires)
        {
            Interface26 pointParamMapper = this.PointParamMapper;

            if (pointParamMapper != null)
            {
                List <Polygon2D> polygon2DList1 = new List <Polygon2D>();
                List <Polygon2D> polygon2DList2 = new List <Polygon2D>();
                foreach (Class95 loop in (IEnumerable <Class95>)Class80.smethod_0 <Class95>(firstLoop))
                {
                    Class917  approximation = new Class917();
                    Polygon2D polygon2D1    = new Polygon2D();
                    foreach (ns9.Class107 coedge in (IEnumerable <ns9.Class107>)loop.Coedges)
                    {
                        ns9.Class88 curve = (ns9.Class88)coedge.Edge.Curve;
                        if (curve != null)
                        {
                            curve.CurvePrimitive.imethod_3(loop, curve, coedge, approximation, wires.Accuracy);
                        }
                        else
                        {
                            Polyline2D polyline2D = this.vmethod_1(coedge);
                            polygon2D1.AddRange((IEnumerable <Point2D>)polyline2D);
                        }
                    }
                    if (polygon2D1.Count > 0)
                    {
                        if (pointParamMapper.IsRightHandedParametric)
                        {
                            if (polygon2D1.GetArea() >= 0.0)
                            {
                                polygon2DList1.Add(polygon2D1);
                            }
                            else
                            {
                                polygon2DList2.Add(polygon2D1);
                            }
                        }
                        else if (polygon2D1.GetArea() < 0.0)
                        {
                            polygon2DList1.Add(polygon2D1);
                        }
                        else
                        {
                            polygon2DList2.Add(polygon2D1);
                        }
                    }
                    Point3D[] points = approximation.Points;
                    if (points.Length > 0)
                    {
                        Polygon2D polygon2D2 = new Polygon2D(points.Length);
                        foreach (Point3D point in points)
                        {
                            polygon2D2.Add(pointParamMapper.imethod_0(point));
                        }
                        if (pointParamMapper.IsRightHandedParametric)
                        {
                            if (polygon2D2.GetArea() >= 0.0)
                            {
                                polygon2DList1.Add(polygon2D2);
                            }
                            else
                            {
                                polygon2DList2.Add(polygon2D2);
                            }
                        }
                        else if (polygon2D2.GetArea() < 0.0)
                        {
                            polygon2DList1.Add(polygon2D2);
                        }
                        else
                        {
                            polygon2DList2.Add(polygon2D2);
                        }
                    }
                }
                if (polygon2DList1.Count == 0 && polygon2DList2.Count != 0)
                {
                    foreach (List <Point2D> point2DList in polygon2DList2)
                    {
                        point2DList.Reverse();
                    }
                    polygon2DList1.AddRange((IEnumerable <Polygon2D>)polygon2DList2);
                    polygon2DList2.Clear();
                }
                Polygon2D[] paramShape = Class794.smethod_9(this.ExtendedIntervalU, this.ExtendedIntervalV, polygon2DList1.ToArray(), polygon2DList2.ToArray(), pointParamMapper.IsRightHandedParametric, wires.Accuracy.Epsilon);
                if (paramShape == null)
                {
                    return;
                }
                foreach (Polygon2D polygon2D in paramShape)
                {
                    Polygon3D polygon3D = new Polygon3D(polygon2D.Count);
                    foreach (Point2D point2D in (List <Point2D>)polygon2D)
                    {
                        polygon3D.Add(pointParamMapper.imethod_1(point2D.X, point2D.Y));
                    }
                    wires.method_9((ICollection <Point3D>)polygon3D, true);
                }
                this.vmethod_0(wires, paramShape, pointParamMapper);
            }
            else
            {
                Class80.smethod_2((Class80)firstLoop, wires);
            }
        }