Esempio n. 1
0
        public bool ReadXml()
        {
            if (File.Exists(Fields.XMLFileName))
            {
                string        path   = Fields.XMLFileName;
                XmlSerializer ser    = new XmlSerializer(typeof(PropFields));
                TextReader    reader = new StreamReader(Fields.XMLFileName);
                Fields             = ser.Deserialize(reader) as PropFields;
                Fields.XMLFileName = path;
                reader.Close();

                return(true);
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
 public Prop()
 {
     Fields = new PropFields();
 }