Exemplo n.º 1
0
 /// <summary>
 /// Generates a ControlData based on an XML representation of the object.
 /// </summary>
 /// <param name="inFile"></param>
 /// <returns></returns>
 public static LegalData FromXml(string inFile)
 {
     using (TextReader reader = new StreamReader(inFile))
     {
         XmlSerializer xmls = new XmlSerializer(typeof(LegalData));
         LegalData     l    = xmls.Deserialize(reader) as LegalData;
         return(l);
     }
 }
Exemplo n.º 2
0
        public static LegalData Parse(string file)
        {
            using (var fs = File.OpenRead(file))
            {
                using (BinaryReader br = new BinaryReader(fs))
                {
                    LegalData data = new LegalData();
                    // TODO: Parse legalinfo? or not

                    return(data);
                }
            }
        }