Menu

#4 Catching UserEvent actions.

open
nobody
None
5
2013-02-03
2011-10-23
Anonymous
No

There seems to be an issue with catching UserEvent actions. I think I fixed the issue in Helper.cs
It was looking for a 'userevent' attribute, which doesn't exists and throws an exception. I've changed it to just 'event' and the UserEvent is now thrown. I'm not 100% sure if this is how to fix this issue. I may have broken something else.

if (eventType == "user")
{
string userevent = ((string)attributes["event"]).ToLower(Helper.CultureInfo);
hash = string.Concat(eventType, userevent).GetHashCode();
if (list.ContainsKey(hash))
constructor = list[hash];
else
constructor = list[hashEvent];
}

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.