Exemplo n.º 1
0
 private void ExportCharacter(Character character, string fileName)
 {
     try
     {
         if (fileName.ToLower().EndsWith(NEW_CHARACTER_FILE_EXTENSION))
         {
             ImportExport.ExportCharacterNewFormat(character, fileName, _agsEditor.CurrentGame);
         }
         else
         {
             ImportExport.ExportCharacter272(character, fileName, _agsEditor.CurrentGame);
         }
     }
     catch (ApplicationException ex)
     {
         _guiController.ShowMessage("An error occurred exporting the character file. The error was: " + ex.Message, MessageBoxIcon.Warning);
     }
 }