Exemplo n.º 1
0
        internal void SaveProject(string pathToFile)
        {
            var             order     = _blService.GetCurrentOrder();
            BinaryFormatter formatter = new BinaryFormatter();

            using (FileStream fs = new FileStream(pathToFile, FileMode.OpenOrCreate))
            {
                formatter.Serialize(fs, order);
            }
        }