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

            qml_File = (QML_File)serializer.DeserializeFromFile(location);
            Validation();
            WriteBinaryFile();
        }
Example #2
0
 /// <summary>
 /// Create new QML file from a QML_File object.
 /// </summary>
 public Deserializer(QML_File _qmlFile, string saveLocation)
 {
     this.saveLocation = saveLocation;
     qml_File          = _qmlFile;
     WriteBinaryFile();
 }