About that static method, it should work indeed. I don't know what the problem is...
About the code you posted, I see a huge bug!
code:
private bool addEventLog(string thisContact, string thisTitle, string thisArtist)
{
RegistryKey rootPath = Registry.CurrentUser.OpenSubKey("Software\\Jedimark\\Music Logger Plus");
string logStatus = rootPath.GetValue("LogToPlus").ToString();
if (logStatus.Equals("true"))
{
MLP.Utilities.AddEventEntry(thisContact, language[18] + " " + thisTitle + " " + language[19] + " " + thisArtist);
return true;
}
return false;
}
I hope you use
OpenSubKey and not CreateSubkey!
There is a better way to store booleans in the registry btw. Use a DWORD value, set it 1 for true and 0 for false.
Does it work when you make your addEventLog function static also?