Exemple #1
0
        static public CSRAData Load()
        {
            string fname = Path.Combine(System.Windows.Forms.Application.StartupPath, "CSRAData.xml");

            CSRAData data = (CSRAData)Serializer.XmlDeserialize(fname, typeof(CSRAData));

            return(data);
        }
Exemple #2
0
        static public bool Save(CSRAData data)
        {
            string fname = Path.Combine(System.Windows.Forms.Application.StartupPath, "CSRAData.xml");

            return(Serializer.XmlSerialize(fname, data));
        }