Esempio n. 1
0
        private void savegameOverviewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //pre-load the tables to prevent additional waiting times when accessing certain information later on
            _fileManager.PreLoadTable("ITEMS");
            _fileManager.PreLoadTable("PLAYERS");
            _fileManager.PreLoadTable("SKILLS");
            _fileManager.PreLoadTable("STATS");

            string[] savegames = Directory.GetFiles(Config.SaveDir, "*.hg1");

            SavegameOverviewForm savegameForm = new SavegameOverviewForm();

            foreach (string savegame in savegames)
            {
                UnitWrapper2 wrapper = new UnitWrapper2(savegame, _fileManager);
                savegameForm.AddCharacter(wrapper);
            }

            savegameForm.Show(this);
        }
Esempio n. 2
0
        private void savegameOverviewToolStripMenuItem_Click(object sender, EventArgs e)
        {
            //pre-load the tables to prevent additional waiting times when accessing certain information later on
            _fileManager.PreLoadTable("ITEMS");
            _fileManager.PreLoadTable("PLAYERS");
            _fileManager.PreLoadTable("SKILLS");
            _fileManager.PreLoadTable("STATS");

            string[] savegames = Directory.GetFiles(Config.SaveDir, "*.hg1");

            SavegameOverviewForm savegameForm = new SavegameOverviewForm();

            foreach (string savegame in savegames)
            {
                UnitWrapper2 wrapper = new UnitWrapper2(savegame, _fileManager);
                savegameForm.AddCharacter(wrapper);
            }

            savegameForm.Show(this);
        }