Exemple #1
0
        private void serialize(string path)
        {
            var fstream = new FileStream(path, FileMode.Create);
            var serializer = new ProjectSerializer(_project);

            serializer.Serialize(fstream);
            fstream.Close();
        }
Exemple #2
0
        private void deserialize(string path)
        {
            newProject();

            var fstream = new FileStream(path, FileMode.Open);
            var serializer = new ProjectSerializer(_project);

            serializer.Deserialize(fstream);
            fstream.Close();
        }