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

                return(true);
            }
            else
            {
                return(false);
            }
        }
Beispiel #2
0
 public Scien()
 {
     Fields = new ScienFields();
 }