Example #1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void MainForm_Load(object sender, EventArgs e)
        {
            Program.CheckMamePath();
            Program.CheckImportPath();
            Program.CheckExportPath();

            LoadMasterGameList();

            if (!File.Exists("roms.db"))
            {
                _romDataEngine = new RomDataEngine("Roms.db");

                var nx = new ImportRomsForm(_romDataEngine);
                nx.ShowDialog();
            }
            else
            {
                _romDataEngine = new RomDataEngine("Roms.db");
            }
        }
Example #2
0
        /// <summary>
        /// 
        /// </summary>
        private void ResetDatabase()
        {
            if (File.Exists("Roms.db")) {
                if(_romDataEngine != null)
                {
                    _romDataEngine.Dispose();
                    _romDataEngine = null;
                }
                File.Delete("Roms.db");
            }

            _romDataEngine = new RomDataEngine("Roms.db");

            var nx = new ImportRomsForm(_romDataEngine);
            nx.ShowDialog();
        }