private void saveAsToolStripMenuItem_Click(object sender, EventArgs e) { SaveFileDialog fdlg = new SaveFileDialog(); fdlg.DefaultExt = "*.map"; fdlg.Title = "Save File"; fdlg.InitialDirectory = Directory.GetCurrentDirectory(); fdlg.Filter = "All files (*.*)|*.*|BOOM! Editor files (*.map)|*.map"; fdlg.FilterIndex = 2; fdlg.RestoreDirectory = true; fdlg.AddExtension = true; if (fdlg.ShowDialog() == DialogResult.OK) { this.toolStripStatusLabel1.Text = "Saving!"; Application.DoEvents(); m_GameEngine.SaveWorldAs(fdlg.FileName); this.filePathKnown = true; UpdateSaveStatus(); } }