private static void ShowLoadProfileErrorMessage(string name, bool isLocked)
{
var message =
String.Format(
"Selected profile {0} {1}!\n\nSelect a different profile to load or use the Profile Editor to create a new profile.",
name, isLocked ? "is locked by another instance" : "data directory does not exist");
var messageBox = new MessageBoxForm(message, "Error", MessageBoxButtons.OK, SystemIcons.Error);
messageBox.ShowDialog();
}