Exemplo n.º 1
0
        private void method_11()
        {
            this.class617_7.MaxDecompressedPageSize = 128;
            FileDependencyCollection dependencyCollection = new FileDependencyCollection();

            if (dependencyCollection.Count > 1)
            {
                this.class617_7.MaxDecompressedPageSize = 128 * dependencyCollection.Count;
            }
            this.class617_7.Encrypted = 2;
            MemoryStream  memoryStream = new MemoryStream();
            Class889      class889     = Class889.Create((Stream)memoryStream, this.dxfVersion_0, this.encoding_0);
            List <string> stringList   = new List <string>();

            foreach (FileDependency.Key key in dependencyCollection.Keys)
            {
                if (!stringList.Contains(key.FeatureName))
                {
                    stringList.Add(key.FeatureName);
                }
            }
            class889.vmethod_9(stringList.Count);
            foreach (string str in stringList)
            {
                class889.vmethod_22(str);
            }
            class889.vmethod_9(dependencyCollection.Count);
            DateTime dateTime = new DateTime(1980, 1, 1);

            foreach (FileDependency.Key key in dependencyCollection.Keys)
            {
                FileDependency fileDependency = dependencyCollection[key];
                if (fileDependency.FeatureName == "Acad:Text")
                {
                    string str = DxfTextStyle.smethod_2(Class1043.smethod_2(this.dxfModel_0.Filename), fileDependency.FullFilename);
                    if (!string.IsNullOrEmpty(str) && File.Exists(str))
                    {
                        FileInfo fileInfo = new FileInfo(str);
                        fileDependency.TimeStamp = fileInfo.LastWriteTime;
                        fileDependency.FileSize  = (int)fileInfo.Length;
                    }
                }
                class889.vmethod_22(fileDependency.FullFilename);
                class889.vmethod_22(fileDependency.FoundPath);
                class889.vmethod_22(fileDependency.FingerPrintGuid);
                class889.vmethod_22(fileDependency.VersionGuid);
                class889.vmethod_9(stringList.IndexOf(fileDependency.FeatureName));
                TimeSpan timeSpan = fileDependency.TimeStamp - dateTime;
                class889.vmethod_9((int)timeSpan.TotalSeconds);
                class889.vmethod_9(fileDependency.FileSize);
                class889.vmethod_5(fileDependency.AffectsGraphics ? (short)1 : (short)0);
                class889.vmethod_9(fileDependency.References.Count);
            }
            this.method_23(this.class617_7, memoryStream, false);
        }
Exemplo n.º 2
0
 public static void Write(Class889 stream, DxfModel model)
 {
     stream.vmethod_5((short)0);
     stream.vmethod_7((ushort)model.Header.MeasurementUnits);
 }