public Form1() { InitializeComponent(); processor = TAHHairProcessor.Load(Path.Combine(Application.StartupPath, @"TAHHairProcessor.xml")); //processor.Dump(@"TAHHairProcessor.xml"); udTahVersion.Value = processor.TahVersion; SetColsItems(); }
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); }