/////////////////////////////////////
/////// DefaultResults.cs
/////////////////////////////////////
/// 
/// Project „Thread3D“ 
/// 
/// $Rev: 265 $: Revision of last commit
/// $Author: franke, keller $: 
///
/// Copyright 2021, Physikalisch-Technische Bundesanstalt, Braunschweig & Berlin


using System.IO;


using System.Xml.Serialization;

 
using tracimPTB_SWTGear;

namespace tracimPTB_SWTGear
{
    /// <summary>
    /// Helper class for Default results
    /// </summary>
    /// <remarks>This class enables the access to the results for the public example data set which are stored in the application settings as XML string.</remarks>
    class DefaultResults
    {
        public tracimPTB_SWTGear.swtGearResultPackage DefaultExampleResults;
        public DefaultResults()
        {
            
            string ExampleResultString = SWTGearClientTool.Properties.Resources.result;

            StringReader myReader = new StringReader(ExampleResultString);
            XmlSerializer serializer = new XmlSerializer(typeof(swtGearResultPackage));
            DefaultExampleResults = serializer.Deserialize(myReader) as swtGearResultPackage;
            
        }

    }
}
    
