Esempio n. 1
0
 public FormGeneratingDatabaseTraceListner(FormGeneratingDatabase form)
 {
     this.form = form;
 }
Esempio n. 2
0
        private void AssignFiles()
        {
            if (NesEmu.EmulationON)
                NesEmu.EmulationPaused = true;
            FormAssignFilesToDB frm = new FormAssignFilesToDB();
            if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
            {
                mode = DBMode.ALL;
                Button_mode_all.Checked = true;
                Button_mode_database.Checked = false;
                Button_mode_files.Checked = false;
                Button_mode_missing.Checked = false;
                Button_mode_notDB.Checked = false;
                _thread_busy = true;
                _assign_folders = frm.FoldersToScan;
                _assign_subfolders = frm.IncludeSubFolders;
                _assign_addFilesNotFound = frm.AddFilesNotFound;
                _assign_update_entries_already_assigned = frm.UpdateEntriesAlreadyAssigned;
                _generate_thread = new Thread(new ThreadStart(AssignFilesThreaded));
                _generate_thread.CurrentUICulture = Program.CultureInfo;
                _generate_thread.Start();
                // Show working
                frmG = new FormGeneratingDatabase(false);
                frmG.ShowDialog(this);

            }
        }
Esempio n. 3
0
 private void GenerateDatabase()
 {
     if (NesEmu.EmulationON)
         NesEmu.EmulationPaused = true;
     FormCreateDatabase frm = new FormCreateDatabase();
     if (frm.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
     {
         mode = DBMode.ALL;
         Button_mode_all.Checked = true;
         Button_mode_database.Checked = false;
         Button_mode_files.Checked = false;
         Button_mode_missing.Checked = false;
         Button_mode_notDB.Checked = false;
         _generate_dbName = frm.DBName;
         _generate_dbPath = frm.DBPath;
         _generate_dbMakeNesCartEntries = frm.DBGenerateNesCart;
         _generate_thread = new Thread(new ThreadStart(GenerateDatabaseThreaded));
         _generate_thread.CurrentUICulture = Program.CultureInfo;
         _generate_thread.Start();
         // Show working
         frmG = new FormGeneratingDatabase(true);
         frmG.ShowDialog(this);
     }
 }
Esempio n. 4
0
 // Add files
 private void toolStripButton7_Click(object sender, EventArgs e)
 {
     OpenFileDialog op = new OpenFileDialog();
     op.Title = Program.ResourceManager.GetString("Title_AddFilesToTheDatabase");
     op.Filter = Program.ResourceManager.GetString("Filter_Rom");
     op.Multiselect = true;
     if (op.ShowDialog(this) == System.Windows.Forms.DialogResult.OK)
     {
         // Show working
         frmG = new FormGeneratingDatabase(false);
         frmG.Show(this);
         _assign_subfolders = false;
         _assign_addFilesNotFound = true;
         _assign_update_entries_already_assigned = false;
         AddFiles(op.FileNames);
         // Done !
         RefreshEntriesThreaded();
         CloseWorkFormThreaded();
     }
 }
Esempio n. 5
0
 public FormGeneratingDatabaseTraceListner(FormGeneratingDatabase form)
 {
     this.form = form;
 }