Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public FormDetails()
        {
            InitializeComponent();

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

            if (FormDetails.itemDataManager == null)
            {
                itemDataManager = new ItemDataManager();
            }

            this.FormClosing += new FormClosingEventHandler(DetailsForm_Close);
        }
Ejemplo n.º 3
0
        public static void ReadEntityData()
        {
            if (Directory.Exists(FormMain.classPath))
            {
                entityDataManager = new EntityDataManager();

                string[] fileNames = Directory.GetFiles(FormMain.classPath);

                if (fileNames.Length != 0)
                {
                    foreach (string s in fileNames)
                    {
                        EntityData entityData = XnaSerializer.Deserialize<EntityData>(s);
                        entityDataManager.EntityData.Add(entityData.EntityName, entityData);
                    }
                }
            }
        }
Ejemplo n.º 4
0
        public static void ReadEntityData()
        {
            entityDataManager = new EntityDataManager();

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

            foreach (string s in fileNames)
            {
                EntityData entityData = XnaSerializer.Deserialize<EntityData>(s);
                entityDataManager.EntityData.Add(entityData.EntityName, entityData);
            }
        }