예제 #1
0
파일: Class1064.cs 프로젝트: 15831944/WW
 public static bool smethod_1(DxfHandledObject o, DxfModel model)
 {
     DxfExtendedData.ValueCollection valueCollection = Class1064.smethod_4(o, model);
     if (valueCollection == null || valueCollection.Count < 2)
     {
         return(false);
     }
     DxfExtendedData.Int16 int16 = valueCollection[1] as DxfExtendedData.Int16;
     if (int16 != null)
     {
         return(int16.Value != (short)0);
     }
     return(false);
 }
예제 #2
0
파일: Class1064.cs 프로젝트: 15831944/WW
        public static Class1064 Get(DxfHandledObject o)
        {
            Class1064 class1064 = new Class1064();

            DxfExtendedData.ValueCollection valueCollection = Class1064.smethod_4(o, o.Model);
            if (valueCollection != null && valueCollection.Count > 0)
            {
                DxfExtendedData.Int16 int16_1 = valueCollection[0] as DxfExtendedData.Int16;
                if (int16_1 != null)
                {
                    class1064.bool_0 = int16_1.Value != (short)0;
                }
                if (valueCollection.Count > 1)
                {
                    DxfExtendedData.Int16 int16_2 = valueCollection[1] as DxfExtendedData.Int16;
                    if (int16_2 != null)
                    {
                        class1064.bool_1 = int16_2.Value != (short)0;
                    }
                }
            }
            return(class1064);
        }