public void OnFileEvent(object sender, FileEventArgs e) { string name; if (e.Save) { Saver.SaveMap(View.getFileName()); } else if (e.Load) { name = View.getFileName(); Loader.LoadFile(name); MainForm.SetLoadedMap(); } }