Ejemplo n.º 1
0
        public static PolygonSaveList FromFile(string fileName)
        {
            PolygonSaveList polygonSaveList =
                FileManager.XmlDeserialize <PolygonSaveList>(fileName);

            polygonSaveList.mFileName = fileName;

            return(polygonSaveList);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Deserializes a file into a new ShapeCollectionSave and returns it.
        /// </summary>
        /// <param name="fileName">The absolute or relative file name. If the file name is relative, then the FileManager's RelativeDirectory will be used.</param>
        /// <returns>The newly-created ShapeCollectionSave.</returns>
        public static ShapeCollectionSave FromFile(string fileName)
        {
            ShapeCollectionSave shapeSaveCollection =
                FileManager.XmlDeserialize <ShapeCollectionSave>(fileName);

            shapeSaveCollection.mFileName = fileName;

            return(shapeSaveCollection);
        }