예제 #1
0
파일: FormGISView.cs 프로젝트: jakedw7/iAM
        public DynamicSegmentationConfiguration Deserialize(string file)
        {
            XmlSerializer xs     = new XmlSerializer(typeof(DynamicSegmentationConfiguration));
            StreamReader  reader = File.OpenText(file);
            DynamicSegmentationConfiguration c = (DynamicSegmentationConfiguration)xs.Deserialize(reader);

            reader.Close();
            return(c);
        }
예제 #2
0
파일: FormGISView.cs 프로젝트: jakedw7/iAM
        public void Serialize(string file, DynamicSegmentationConfiguration c)
        {
            XmlSerializer xs     = new XmlSerializer(c.GetType());
            StreamWriter  writer = File.CreateText(file);

            xs.Serialize(writer, c);
            writer.Flush();
            writer.Close();
        }