private void btnDebugFile_Click(object sender, EventArgs e)
{
string filePak = getBestFullFilename(txtPakFile.Text);
string filePab = getBestFullFilename(txtPabFile.Text);
string fileDbg = getBestFullFilename(txtDebugFile.Text);
PakFormat pts = new PakFormat(filePak, filePab, fileDbg, formatToPakFormatType(cboFormatType.Text));
openInput.Filter = string.Format("{0} (*.pak.{1})|*.pak.{1}|All files (*.*)|*.*", pts.PakFormatType.ToString(), pts.FileExtension);
openInput.Title = string.Format("Open {0} DBG file", pts.PakFormatType.ToString());
openInput.FileName = fileDbg;
if (openInput.ShowDialog(this) != DialogResult.Cancel)
{
txtDebugFile.Text = openInput.FileName;
}
}