Пример #1
0
        public void CloneFrom(FSData loadedpackage)
        {
            foreach (ExclusionRectangle r in loadedpackage.ExclusionRectangle)
            {
                this.ExclusionRectangle.Add(r);
            }
            foreach (Marker r in loadedpackage.Marker)
            {
                this.Marker.Add(r);
            }
            foreach (Vor r in loadedpackage.Vor)
            {
                this.Vor.Add(r);
            }
            foreach (Ndb r in loadedpackage.Ndb)
            {
                this.Ndb.Add(r);
            }

            this.ModelData = loadedpackage.ModelData;
            this.Airport   = loadedpackage.Airport;
            this.Version   = loadedpackage.Version;
            this.Xsi       = loadedpackage.Xsi;
            this.NoNamespaceSchemaLocation = loadedpackage.NoNamespaceSchemaLocation;
        }
Пример #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            // test path
            string path = @"C:\Users\Cabinet\Downloads\AFX_LFPN_RS.bgl\AFX_LFPN_RS.bgl.xml";

            FSData data = new FSData();

            data.Load(path);
        }
Пример #3
0
        // XML Write / Read
        // ********* Input/Output Methods **********
        public void Load(string XmlPath)
        {
            XmlSerializer serializer = new XmlSerializer(typeof(FSData));

            System.IO.StreamReader reader = new System.IO.StreamReader(XmlPath);
            FSData loadedpackage          = (FSData)serializer.Deserialize(reader);

            reader.Close();

            this.CloneFrom(loadedpackage);
        }