Beispiel #1
0
        public Form1()
        {
            InitializeComponent();

            processor = TAHHairProcessor.Load(Path.Combine(Application.StartupPath, @"TAHHairProcessor.xml"));
            //processor.Dump(@"TAHHairProcessor.xml");
            udTahVersion.Value = processor.TahVersion;
            SetColsItems();
        }
Beispiel #2
0
        public static TAHHairProcessor Load(string source_file)
        {
            XmlReader        reader     = XmlReader.Create(source_file);
            XmlSerializer    serializer = new XmlSerializer(typeof(TAHHairProcessor));
            TAHHairProcessor program    = serializer.Deserialize(reader) as TAHHairProcessor;

            reader.Close();
            return(program);
        }