private void SaveDiffMenu_Click(object sender, EventArgs e)
{
using (var dialog = new SaveFileDialog()) {
dialog.Title = "Save Diff";
dialog.Filter = "Heap Diffs|*.heapdiff";
dialog.AddExtension = true;
dialog.CheckPathExists = true;
dialog.DefaultExt = ".heapdiff";
if (dialog.ShowDialog(this) != System.Windows.Forms.DialogResult.OK)
return;
File.Copy(Filename, dialog.FileName, true);
Filename = dialog.FileName;
Text = "Diff Viewer - " + Filename;
}
}