private void save() { if (this.saveFileDialog1.ShowDialog() == DialogResult.Cancel) { return; } currentFileName = this.saveFileDialog1.FileName; SaveAndLoad.saveGame(panel.gameShape, this.saveFileDialog1.FileName); }
private void saveGameToolStripMenuItem_Click(object sender, EventArgs e) { if (currentFileName == "") { save(); } else { SaveAndLoad.saveGame(panel.gameShape, currentFileName); } }