Exemple #1
0
        public virtual void FromXml(XmlNode node)
        {
            this.title = node.Attributes["Title"].Value;
            if (node.Attributes["Location"] != null)
            {
                this.location = node.Attributes["Location"].Value;
            }
            if (node.Attributes["Owner"] != null)
            {
                this.owner = node.Attributes["Owner"].Value;
            }

            this.modules.Clear();
            foreach (XmlNode xMod in node["Modules"].ChildNodes)
            {
                StationModuleBase mod = StationModuleBase.InvokeCreate(xMod.Name);

                mod.FromXml(xMod);
                this.MountModule(mod);
            }
        }