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); }
public static void Set(DxfHandledObject o, Class1064 value) { if (value == null) { DxfAppId key; if (o.Model == null || !o.Model.AppIds.TryGetValue("AcadAnnotative", out key)) { return; } o.ExtendedDataCollection.Remove(key); } else { DxfExtendedData extendedData; if (o.ExtendedDataCollection.TryGetValue(Class1064.smethod_3(o.Model), out extendedData)) { DxfExtendedData.ValueCollection valueCollection; if (extendedData.Values.Count >= 2 && extendedData.Values[1] is DxfExtendedData.ValueCollection) { valueCollection = extendedData.Values[1] as DxfExtendedData.ValueCollection; } else { extendedData.Values.Clear(); extendedData.Values.Add((IExtendedDataValue) new DxfExtendedData.String("AnnotativeData")); valueCollection = new DxfExtendedData.ValueCollection(); extendedData.Values.Add((IExtendedDataValue)valueCollection); } valueCollection.Clear(); valueCollection.Add((IExtendedDataValue) new DxfExtendedData.Int16(value.bool_0 ? (short)1 : (short)0)); valueCollection.Add((IExtendedDataValue) new DxfExtendedData.Int16(value.bool_1 ? (short)1 : (short)0)); } else { DxfExtendedData dxfExtendedData = new DxfExtendedData(Class1064.smethod_3(o.Model)); dxfExtendedData.Values.Add((IExtendedDataValue) new DxfExtendedData.String("AnnotativeData")); DxfExtendedData.ValueCollection valueCollection = new DxfExtendedData.ValueCollection(); dxfExtendedData.Values.Add((IExtendedDataValue)valueCollection); valueCollection.Add((IExtendedDataValue) new DxfExtendedData.Int16(value.bool_0 ? (short)1 : (short)0)); valueCollection.Add((IExtendedDataValue) new DxfExtendedData.Int16(value.bool_1 ? (short)1 : (short)0)); o.ExtendedDataCollection.Add(dxfExtendedData); } } }
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); }