Example #1
0
        public FormDetails()
        {
            InitializeComponent();

            if (FormDetails.itemManager == null)
                itemManager = new ItemDataManager();

            if (FormDetails.entityDataManager == null)
                entityDataManager = new EntityDataManager();

            if (FormDetails.skillManager == null)
                skillManager = new SkillDataManager();

            this.FormClosing += new FormClosingEventHandler(FormDetails_FormClosing);
        }
Example #2
0
        public static void ReadSkillData()
        {
            skillManager = new SkillDataManager();

            string[] fileNames = Directory.GetFiles(FormMain.SkillPath, "*.xml");

            foreach (string s in fileNames)
            {
                SkillData chestData = XnaSerializer.Deserialize<SkillData>(s);
                skillManager.SkillData.Add(chestData.Name, chestData);
            }
        }