Exemple #1
0
        /// <summary>
        /// Binary deserializer.
        /// </summary>
        /// <param name="fileName">The path to load the file.</param>
        /// <returns>Package object</returns>
        public static ResultPckg2 DeserializeResultPackage(string fileName)
        {
            Stream          stream     = File.Open(fileName, FileMode.Open);
            BinaryFormatter bformatter = new BinaryFormatter();
            ResultPckg2     Result     = (ResultPckg2)bformatter.Deserialize(stream);

            stream.Close();
            return(Result);
        }
Exemple #2
0
 public void LoadResult(string fileName)
 {
     // OpenDocument
     MyResultPackage = ResultPckg2.DeserializeResultPackage(fileName);
     UpdateDisplay();
 }