Beispiel #1
0
        public virtual void b(XmlReader xmlReader, w1 w)
        {
            if (w == null)
            {
                throw new l1();
            }
            w.A = this.A;
            bool isEmptyElement = xmlReader.IsEmptyElement;

            if (xmlReader["FORMAT"] != "1.00")
            {
                throw new M1();
            }
            base.b("" + xmlReader["NAME"]);
            this.E("" + xmlReader["AUTHOR"]);
            if (Z1.c(w.A, new Z1("2.1.0.2")))
            {
                this.A = DateTime.ParseExact(xmlReader["CREATED"], "yyyy.MM.dd HH:mm:ss", null);
                this.a = DateTime.ParseExact(xmlReader["MODIFIED"], "yyyy.MM.dd HH:mm:ss", null);
            }
            else
            {
                if (w.A != null)
                {
                    this.A = w.A.CreationTime;
                    this.a = w.A.LastWriteTime;
                }
            }
            if (xmlReader["PROTECTION"] != null)
            {
                this.A = V.a(xmlReader["PROTECTION"]);
            }
            xmlReader.ReadStartElement("PROJECT");
            bool isEmptyElement2 = xmlReader.IsEmptyElement;

            xmlReader.ReadStartElement("DIAGRAMS");
            if (!isEmptyElement2)
            {
                while (xmlReader.IsStartElement())
                {
                    p1 p = new Q1(xmlReader, w);
                    this.E(p);
                }
                xmlReader.ReadEndElement();
            }
            if (!isEmptyElement)
            {
                xmlReader.ReadEndElement();
            }
            this.C(w);
        }
Beispiel #2
0
 public virtual void b(XmlReader xmlReader, w1 w)
 {
     if (w == null)
     {
         throw new l1();
     }
     this.A = new Z1("0.0.0.0");
     this.B = null;
     this.b = null;
     this.A = false;
     if (xmlReader["GUID"] != "2FB25471-B62C-4EE6-BD43-F819C095ACF8")
     {
         throw new M1();
     }
     if (xmlReader["FORMAT"] != "0000")
     {
         throw new M1();
     }
     if (xmlReader["APP_VERSION"] != null)
     {
         this.A = new Z1(xmlReader["APP_VERSION"]);
     }
     w.A = this.A;
     if (Z1.c(this.A(), new Z1("2.1.0.2")))
     {
         this.A = true;
         this.B = xmlReader["CHECKSUM"];
         if (Z1.a(this.A(), new Z1("2.1.0.2")))
         {
             this.B = o.A(ulong.Parse(this.B));
         }
     }
     xmlReader.ReadStartElement("FRAME");
     this.A = new h2(xmlReader, w);
     if (this.A)
     {
         X1     x     = new X1();
         byte[] array = j2.A(this.A, x);
         this.b = new o(array).ToString();
         if (this.b != this.B)
         {
             if (Z1.b(this.A, j1.A()))
             {
                 throw new N1(this.A, j1.A());
             }
             if (K1.A().A().DefaultAuthorName != "PAPREPAIR")
             {
                 throw new m1();
             }
         }
     }
     using (IEnumerator <p1> enumerator = this.A().E().GetEnumerator())
     {
         while (enumerator.MoveNext())
         {
             Q1 q = (Q1)enumerator.Current;
             q.A(this.A);
         }
     }
     xmlReader.ReadEndElement();
     if (!xmlReader.EOF)
     {
         throw new M1();
     }
 }
Beispiel #3
0
 public N1(Z1 z, Z1 z2) : base("Legacy application version error")
 {
     this.A = z;
     this.a = z2;
 }