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); } }
public Prop() { Fields = new PropFields(); }