Esempio n. 1
0
        public DateTime imethod_28()
        {
            DateTime dateTime = Class644.smethod_4((double)this.imethod_11());
            double   num      = (double)this.imethod_11();

            if (dateTime == DateTime.MaxValue)
            {
                return(dateTime);
            }
            dateTime = dateTime.AddMilliseconds(num);
            return(dateTime);
        }
Esempio n. 2
0
        internal void method_1(DxfModel model)
        {
            if (model.Header.AcadVersion >= DxfVersion.Dxf18)
            {
                return;
            }
            DxfXRecord xrecordDwgProps = model.XRecordDwgProps;

            if (xrecordDwgProps == null)
            {
                return;
            }
            List <DxfXRecordValue> .Enumerator enumerator = xrecordDwgProps.Values.GetEnumerator();
            if (!enumerator.MoveNext() || enumerator.Current.Code != (short)1 || !((string)enumerator.Current.Value == "DWGPROPS COOKIE"))
            {
                return;
            }
            while (enumerator.MoveNext())
            {
                DxfXRecordValue current = enumerator.Current;
                if (current.Code >= (short)300 && current.Code <= (short)309)
                {
                    string str1 = (string)current.Value;
                    if (!(str1 == "="))
                    {
                        int    length = str1.IndexOf('=');
                        string str2   = string.Empty;
                        string name;
                        if (length < 0)
                        {
                            name = str1;
                        }
                        else
                        {
                            name = str1.Substring(0, length);
                            str2 = str1.Substring(length + 1);
                        }
                        this.list_0.Add(new SummaryInfo.Property(name, str2));
                    }
                }
                else
                {
                    switch (current.Code)
                    {
                    case 1:
                        this.HyperLinkBase = (string)current.Value;
                        continue;

                    case 2:
                        this.Title = (string)current.Value;
                        continue;

                    case 3:
                        this.Subject = (string)current.Value;
                        continue;

                    case 4:
                        this.Author = (string)current.Value;
                        continue;

                    case 6:
                        this.Comments = (string)current.Value;
                        continue;

                    case 7:
                        this.Keywords = (string)current.Value;
                        continue;

                    case 8:
                        this.LastSavedBy = (string)current.Value;
                        continue;

                    case 9:
                        this.RevisionNumber = (string)current.Value;
                        continue;

                    case 40:
                        this.dxfTimeSpan_0 = Class644.smethod_7((double)current.Value);
                        continue;

                    case 41:
                        this.dateTime_0 = Class644.smethod_4((double)current.Value);
                        continue;

                    case 42:
                        this.dateTime_1 = Class644.smethod_4((double)current.Value);
                        continue;

                    default:
                        continue;
                    }
                }
            }
        }