Exemplo n.º 1
0
        internal void OpenProject(string pathToFile)
        {
            Order order = null;


            BinaryFormatter formatter = new BinaryFormatter();

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

            _blService.SetCurrentOrder(order);
        }