Example #1
0
            private void method_3(
                IList <Class908> chunks,
                DxfEntity entity,
                DrawContext.Wireframe drawContext)
            {
                LinkedListNodeRef <Interface12> linkedListNodeRef = !this.bool_0 ? this.linkedListNodeRef_0 : this.linkedListNodeRef_1;
                bool?nullable0 = this.nullable_0;

                if ((!nullable0.GetValueOrDefault() ? 1 : (!nullable0.HasValue ? 1 : 0)) != 0)
                {
                    linkedListNodeRef.Insert((Interface12) new Class807());
                    this.nullable_0 = new bool?(true);
                }
                System.Drawing.Color color = (System.Drawing.Color) this.GetColor(drawContext.GetPlotColor(entity));
                short lineWeight           = drawContext.GetLineWeight(entity);

                foreach (Class908 chunk in (IEnumerable <Class908>)chunks)
                {
                    Class1036 class1036 = new Class1036(chunk, color, lineWeight);
                    linkedListNodeRef.Insert((Interface12)class1036);
                }
            }
Example #2
0
            private void method_4(bool forText, Interface12 drawable)
            {
                LinkedListNodeRef <Interface12> linkedListNodeRef = !forText || !this.bool_0 ? this.linkedListNodeRef_0 : this.linkedListNodeRef_1;

                if (forText)
                {
                    bool?nullable0 = this.nullable_0;
                    if ((!nullable0.GetValueOrDefault() ? 1 : (!nullable0.HasValue ? 1 : 0)) != 0)
                    {
                        linkedListNodeRef.Insert((Interface12) new Class807());
                        this.nullable_0 = new bool?(true);
                    }
                }
                else
                {
                    bool?nullable0 = this.nullable_0;
                    if ((nullable0.GetValueOrDefault() ? 1 : (!nullable0.HasValue ? 1 : 0)) != 0)
                    {
                        linkedListNodeRef.Insert((Interface12) new Class748());
                        this.nullable_0 = new bool?(false);
                    }
                }
                linkedListNodeRef.Insert(drawable);
            }