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

/*
using System;
using System.Collections.Generic;
 * */
using System.IO;
/*
 * using System.Linq;
using System.Net;
using System.Net.Http;
using System.Net.Security;
using System.Security.Cryptography.X509Certificates;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Forms;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
 */
//using System.Xml;
using System.Xml.Serialization;
//using System.Xml.Linq;
 
using tracimPTB_Thread3D;

namespace tracimPTB_Thread3D
{
    /// <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 thread3DResultPackage DefaultExampleResults;
        public DefaultResults()
        {
            
            string ExampleResultString = Thread3DClientTool.Properties.Resources.freeResultPack;

            //string path = @"C:\Users\keller04\Desktop\freeResultPackage.xml";
            
            //string currentPath = Directory.GetCurrentDirectory();
            //string path = currentPath + @"\..\..\freeResultPackage.xml";

            //string ExampleResultString  = File.ReadAllText(path);

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

    }
}
    
