示例#1
0
        private void createGameZipToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RvTreeRow selected = DirTree.Selected;
            if (selected == null)
                return;

            if (selected.DatId == null)
            {
                MessageBox.Show("Select a DAT to remake", "RomVaultX", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (GameGrid.SelectedRows.Count == 0)
            {
                MessageBox.Show("Select a Game to remake", "RomVaultX", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            };

             int GameId = (int)GameGrid.SelectedRows[0].Tag;

            if (outputDir == null)
                outputDir = new FolderBrowserDialog();

            DialogResult result = outputDir.ShowDialog();
            if (result != DialogResult.OK)
                return;

            ReMakeZips.SetDatZipInfo(GameId, outputDir.SelectedPath);

            FrmProgressWindow progress = new FrmProgressWindow(this, "Extracting File To Zips", ReMakeZips.MakeDatZips);
            progress.ShowDialog(this);
            progress.Dispose();

        }
示例#2
0
 private void btnUpdateDats_Click(object sender, EventArgs e)
 {
     FrmProgressWindow progress = new FrmProgressWindow(this, "Scanning Dats", DatUpdate.UpdateDat);
     progress.ShowDialog(this);
     progress.Dispose();
     DirTree.Setup(RvTreeRow.ReadTreeFromDB());
     DatSetSelected(DirTree.Selected);
 }
示例#3
0
 private void deepReScanToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmProgressWindow progress = new FrmProgressWindow(this, "Scanning RomRoot Files", romRootScanner.ScanFilesDeep);
     progress.ShowDialog(this);
     progress.Dispose();
     DirTree.Setup(RvTreeRow.ReadTreeFromDB());
     DatSetSelected(DirTree.Selected);
 }
示例#4
0
文件: frmMain.cs 项目: vidarw/RVWorld
        private void DoScan()
        {
            FrmProgressWindow progress = new FrmProgressWindow(this, "Scanning Files", RomScanner.ScanFiles);

            progress.ShowDialog(this);
            progress.Dispose();
            DirTree.Setup(RvTreeRow.ReadTreeFromDB());
            DatSetSelected(DirTree.Selected);
        }
示例#5
0
        private void createDATZipsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RvTreeRow selected = DirTree.Selected;
            if (selected == null)
                return;

            if (outputDir == null)
                outputDir = new FolderBrowserDialog();

            DialogResult result = outputDir.ShowDialog();
            if (result != DialogResult.OK)
                return;

            ReMakeZips.SetDatZipInfo(selected, outputDir.SelectedPath);

            FrmProgressWindow progress = new FrmProgressWindow(this, "Extracting File To Zips", ReMakeZips.MakeDatZips);
            progress.ShowDialog(this);
            progress.Dispose();
        }
示例#6
0
 private void quickReScanToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FrmProgressWindow progress = new FrmProgressWindow(this, "Scanning RomRoot Files", romRootScanner.ScanFiles);
     progress.ShowDialog(this);
     progress.Dispose();
     DirTree.Setup(RvTreeRow.ReadTreeFromDB());
     DatSetSelected(DirTree.Selected);
 }
示例#7
0
 private void DoScan()
 {
     FrmProgressWindow progress = new FrmProgressWindow(this, "Scanning Files", romScanner.ScanFiles);
     progress.ShowDialog(this);
     progress.Dispose();
     DirTree.Setup(RvTreeRow.ReadTreeFromDB());
     DatSetSelected(DirTree.Selected);
 }
示例#8
0
        private void createGameZipToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RvTreeRow selected = DirTree.Selected;
            if (selected == null)
                return;

            if (selected.DatId == null)
            {
                MessageBox.Show("Select a DAT to remake", "RomVaultX", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
            if (GameGrid.SelectedRows.Count == 0)
            {
                MessageBox.Show("Select a Game to remake", "RomVaultX", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            };

             int GameId = (int)GameGrid.SelectedRows[0].Tag;

            if (outputDir == null)
                outputDir = new FolderBrowserDialog();

            DialogResult result = outputDir.ShowDialog();
            if (result != DialogResult.OK)
                return;

            ReMakeZips.SetDatZipInfo(GameId, outputDir.SelectedPath);

            FrmProgressWindow progress = new FrmProgressWindow(this, "Extracting File To Zips", ReMakeZips.MakeDatZips);
            progress.ShowDialog(this);
            progress.Dispose();
        }
示例#9
0
        private void createDATZipsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            RvTreeRow selected = DirTree.Selected;
            if (selected == null)
                return;

            if (outputDir == null)
                outputDir = new FolderBrowserDialog();

            DialogResult result = outputDir.ShowDialog();
            if (result != DialogResult.OK)
                return;

            ReMakeZips.SetDatZipInfo(selected, outputDir.SelectedPath);

            FrmProgressWindow progress = new FrmProgressWindow(this, "Extracting File To Zips", ReMakeZips.MakeDatZips);
            progress.ShowDialog(this);
            progress.Dispose();
        }
示例#10
0
 private void btnUpdateDats_Click(object sender, EventArgs e)
 {
     FrmProgressWindow progress = new FrmProgressWindow(this, "Scanning Dats", DatUpdate.UpdateDat);
     progress.ShowDialog(this);
     progress.Dispose();
     DirTree.Setup(RvTreeRow.ReadTreeFromDB());
     DatSetSelected(DirTree.Selected);
 }