private void FileSave_Click(object sender, RoutedEventArgs e) { SaveFileDialog fileSaver = new SaveFileDialog(); fileSaver.Filter = "BSP Files|*.bsp|All Files|*.*"; // Process open file dialog box results if (fileSaver.ShowDialog() == true) { string fileToSave = fileSaver.FileName; BSPWriter.writeBSP(currentBSP, fileToSave); currentBSP.Saved(); } }