private void cmdBrowse_Click( object sender, EventArgs e )
{
SaveFileDialog dlg = new SaveFileDialog();
try {
FileInfo f = new FileInfo( txtFilePath.Text );
dlg.InitialDirectory = f.DirectoryName;
dlg.FileName = f.Name;
} catch( ArgumentException ) {
}
dlg.DefaultExt = "profile";
dlg.AddExtension = true;
dlg.Filter = GlobalStrings.DlgProfile_Filter;
DialogResult res = dlg.ShowDialog();
if( res == System.Windows.Forms.DialogResult.OK ) {
txtFilePath.Text = dlg.FileName;
}
}