Exemplo n.º 1
0
 private void SaveMap()
 {
     using (Forms.SaveFileDialog fd = new Forms.SaveFileDialog())
     {
         fd.Title  = "Save a Map...";
         fd.Filter = FILE_TYPE_FILTER;
         if (fd.ShowDialog() == Forms.DialogResult.OK)
         {
             string file = fd.FileName;
             FileReadWriter.WriteToBinary(CurrentMap, file);
         }
     }
 }