private void ReplaceSpriteUsingImportWindow(string fileName, Sprite sprite)
{
try
{
Bitmap bmp = LoadSpriteFileFromDisk(fileName);
ReplaceSprite(bmp, sprite, fileName);
SetAsLastImportedSprite(bmp, fileName);
}
catch (Exception ex)
{
Factory.GUIController.ShowMessage("There was an error importing the file. The error message was: '" + ex.Message + "'. Please try again", MessageBoxIcon.Warning);
}
}