예제 #1
0
        public static void MakeDatZips(object sender, DoWorkEventArgs e)
        {
            _bgw = sender as BackgroundWorker;
            Program.SyncCont = e.Argument as SynchronizationContext;
            if (Program.SyncCont == null)
            {
                _bgw = null;
                return;
            }

            if (!Directory.Exists(_outputdir))
                return;

            if (_treeRow != null)
                FindDats(_treeRow);
            else
            {
                RvGame tGame = new RvGame();
                tGame.DBRead((int)_gameId, true);
                ExtractGame(tGame, _outputdir);
            }
            _bgw.ReportProgress(0, new bgwText("Creating Zips Complete"));
            _bgw = null;
            Program.SyncCont = null;
        }
예제 #2
0
        private void UpdateSelectedGame()
        {
            RvGame tGame = null;

            if (_updatingGameGrid)
                return;

            if (GameGrid.SelectedRows.Count == 1)
            {
                int GameId = (int)GameGrid.SelectedRows[0].Tag;
                tGame = new RvGame();
                tGame.DBRead(GameId);
            }
            if (tGame == null)
            {
                lblSIName.Visible = false;
                lblSITName.Visible = false;

                lblSIDescription.Visible = false;
                lblSITDescription.Visible = false;

                lblSIManufacturer.Visible = false;
                lblSITManufacturer.Visible = false;

                lblSICloneOf.Visible = false;
                lblSITCloneOf.Visible = false;

                lblSIRomOf.Visible = false;
                lblSITRomOf.Visible = false;

                lblSIYear.Visible = false;
                lblSITYear.Visible = false;

                lblSITotalRoms.Visible = false;
                lblSITTotalRoms.Visible = false;

                // Trurip

                lblSIPublisher.Visible = false;
                lblSITPublisher.Visible = false;

                lblSIDeveloper.Visible = false;
                lblSITDeveloper.Visible = false;

                lblSIEdition.Visible = false;
                lblSITEdition.Visible = false;

                lblSIVersion.Visible = false;
                lblSITVersion.Visible = false;

                lblSIType.Visible = false;
                lblSITType.Visible = false;

                lblSIMedia.Visible = false;
                lblSITMedia.Visible = false;

                lblSILanguage.Visible = false;
                lblSITLanguage.Visible = false;

                lblSIPlayers.Visible = false;
                lblSITPlayers.Visible = false;

                lblSIRatings.Visible = false;
                lblSITRatings.Visible = false;

                lblSIGenre.Visible = false;
                lblSITGenre.Visible = false;

                lblSIPeripheral.Visible = false;
                lblSITPeripheral.Visible = false;

                lblSIBarCode.Visible = false;
                lblSITBarCode.Visible = false;

                lblSIMediaCatalogNumber.Visible = false;
                lblSITMediaCatalogNumber.Visible = false;

                return;
            }

            lblSIName.Visible = true;
            lblSITName.Visible = true;
            lblSITName.Text = GameGrid.SelectedRows[0].Cells[1].Value.ToString();

            if (tGame.IsTrurip)
            {
                lblSIDescription.Visible = true;
                lblSITDescription.Visible = true;
                lblSITDescription.Text = tGame.Description;

                lblSIManufacturer.Visible = false;
                lblSITManufacturer.Visible = false;

                lblSICloneOf.Visible = false;
                lblSITCloneOf.Visible = false;

                lblSIRomOf.Visible = false;
                lblSITRomOf.Visible = false;

                lblSIYear.Visible = false;
                lblSITYear.Visible = false;

                lblSITotalRoms.Visible = false;
                lblSITTotalRoms.Visible = false;

                lblSIPublisher.Visible = true;
                lblSITPublisher.Visible = true;
                lblSITPublisher.Text = tGame.Publisher;

                lblSIDeveloper.Visible = true;
                lblSITDeveloper.Visible = true;
                lblSITDeveloper.Text = tGame.Developer;

                lblSIEdition.Visible = true;
                lblSITEdition.Visible = true;
                lblSITEdition.Text = tGame.Edition;

                lblSIVersion.Visible = true;
                lblSITVersion.Visible = true;
                lblSITVersion.Text = tGame.Version;

                lblSIType.Visible = true;
                lblSITType.Visible = true;
                lblSITType.Text = tGame.Type;

                lblSIMedia.Visible = true;
                lblSITMedia.Visible = true;
                lblSITMedia.Text = tGame.Media;

                lblSILanguage.Visible = true;
                lblSITLanguage.Visible = true;
                lblSITLanguage.Text = tGame.Language;

                lblSIPlayers.Visible = true;
                lblSITPlayers.Visible = true;
                lblSITPlayers.Text = tGame.Players;

                lblSIRatings.Visible = true;
                lblSITRatings.Visible = true;
                lblSITRatings.Text = tGame.Ratings;

                lblSIGenre.Visible = true;
                lblSITGenre.Visible = true;
                lblSITGenre.Text = tGame.Genre;

                lblSIPeripheral.Visible = true;
                lblSITPeripheral.Visible = true;
                lblSITPeripheral.Text = tGame.Peripheral;

                lblSIBarCode.Visible = true;
                lblSITBarCode.Visible = true;
                lblSITBarCode.Text = tGame.BarCode;

                lblSIMediaCatalogNumber.Visible = true;
                lblSITMediaCatalogNumber.Visible = true;
                lblSITMediaCatalogNumber.Text = tGame.MediaCatalogNumber;

            }
            else
            {
                lblSIDescription.Visible = true;
                lblSITDescription.Visible = true;
                lblSITDescription.Text = tGame.Description;

                lblSIManufacturer.Visible = true;
                lblSITManufacturer.Visible = true;
                lblSITManufacturer.Text = tGame.Manufacturer;

                lblSICloneOf.Visible = true;
                lblSITCloneOf.Visible = true;
                lblSITCloneOf.Text = tGame.CloneOf;

                lblSIRomOf.Visible = true;
                lblSITRomOf.Visible = true;
                lblSITRomOf.Text = tGame.RomOf;

                lblSIYear.Visible = true;
                lblSITYear.Visible = true;
                lblSITYear.Text = tGame.Year;

                lblSITotalRoms.Visible = true;
                lblSITTotalRoms.Visible = true;

                lblSIPublisher.Visible = false;
                lblSITPublisher.Visible = false;

                lblSIDeveloper.Visible = false;
                lblSITDeveloper.Visible = false;

                lblSIEdition.Visible = false;
                lblSITEdition.Visible = false;

                lblSIVersion.Visible = false;
                lblSITVersion.Visible = false;

                lblSIType.Visible = false;
                lblSITType.Visible = false;

                lblSIMedia.Visible = false;
                lblSITMedia.Visible = false;

                lblSILanguage.Visible = false;
                lblSITLanguage.Visible = false;

                lblSIPlayers.Visible = false;
                lblSITPlayers.Visible = false;

                lblSIRatings.Visible = false;
                lblSITRatings.Visible = false;

                lblSIGenre.Visible = false;
                lblSITGenre.Visible = false;

                lblSIPeripheral.Visible = false;
                lblSITPeripheral.Visible = false;

                lblSIBarCode.Visible = false;
                lblSITBarCode.Visible = false;

                lblSIMediaCatalogNumber.Visible = false;
                lblSITMediaCatalogNumber.Visible = false;

            }

            UpdateRomGrid(tGame.GameId);
        }