コード例 #1
0
ファイル: frmMain.cs プロジェクト: vidarw/RVWorld
        private void fixDatsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DirTree.Selected == null)
            {
                return;
            }

            FixDatList.extract(DirTree.Selected.dirFullName);
        }
コード例 #2
0
        private void fixDatsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (DirTree.Selected == null)
            {
                return;
            }

            using (SaveFileDialog openFileDialog = new SaveFileDialog())
            {
                openFileDialog.Filter = "Dat File (*.Dat)|*.DAT";
                openFileDialog.ShowDialog();
                string outPath = openFileDialog.FileName;

                if (string.IsNullOrWhiteSpace(outPath))
                {
                    return;
                }

                FixDatList.extract(DirTree.Selected.TRow.dirFullName, outPath);
            }
        }