コード例 #1
0
        public void Load(string fileName)
        {
            _fileName = fileName;
            XmlSerializer serializer = new XmlSerializer(typeof(RehaulFactoryStationData));

            // A FileStream is needed to read the XML document.
            // Declare an object variable of the type to be deserialized.
            RehaulFactoryStationData rehaulData;

            // Use the Deserialize method to restore the object's state with
            // data from the XML document.
            using (FileStream fs = new FileStream(fileName, FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read)) {
                rehaulData = (RehaulFactoryStationData)serializer.Deserialize(fs);
            }

            this._factoryList = rehaulData.FactoryList;
        }
コード例 #2
0
 public RehaulFactoryStationData()
 {
     _factoryList = new TFactoryList();
 }
コード例 #3
0
        public void Load(string fileName)
        {
            _fileName = fileName;
            XmlSerializer serializer = new XmlSerializer(typeof(RehaulFactoryStationData));

            // A FileStream is needed to read the XML document.
            // Declare an object variable of the type to be deserialized.
            RehaulFactoryStationData rehaulData;

            // Use the Deserialize method to restore the object's state with
            // data from the XML document.
            using (FileStream fs = new FileStream(fileName, FileMode.Open, System.IO.FileAccess.Read, System.IO.FileShare.Read)) {
                rehaulData = (RehaulFactoryStationData)serializer.Deserialize(fs);
            }

            this._factoryList = rehaulData.FactoryList;
        }
コード例 #4
0
 public RehaulFactoryStationData()
 {
     _factoryList = new TFactoryList();
 }