示例#1
0
            public static void Load(FormHistory form)
            {
                XmlSerializer serializer = new XmlSerializer(typeof(FormHistoryProperties));

                using (FileStream fs = new FileStream(form.PropertiesFile, FileMode.Open))
                {
                    FormHistoryProperties properties = (FormHistoryProperties)serializer.Deserialize(fs);

                    properties.Apply(form);
                }
            }