Esempio n. 1
0
        public Deserializer(string location)
        {
            saveLocation = String.Format("{0}/{1}", Path.GetDirectoryName(location), Path.GetFileNameWithoutExtension(location));
            YAXSerializer serializer = new YAXSerializer(typeof(QSL_File), YAXSerializationOptions.DontSerializeNullObjects);

            qsl_File = (QSL_File)serializer.DeserializeFromFile(location);
            Validation();
            WriteBinaryFile();
        }
Esempio n. 2
0
 /// <summary>
 /// Create a QSL file from a QSL_File object.
 /// </summary>
 public Deserializer(QSL_File _qslFile, string _saveLocation)
 {
     this.saveLocation = _saveLocation;
     qsl_File          = _qslFile;
     WriteBinaryFile();
 }