LIBOMV-686 Implements new event patterns based on the Microsoft Framework Design Guidelines in GroupManager

* BREAKING CHANGE * this is a major shift in the way events are internally handled.

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3162 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2009-10-20 20:18:03 +00:00
parent 9f8d0d49f0
commit b0cb77e1e5
12 changed files with 869 additions and 408 deletions

View File

@@ -29,7 +29,7 @@ namespace OpenMetaverse.TestClient.Commands
waitQuery.Reset();
Client.Avatars.OnAvatarNames += Avatars_OnAvatarNames;
Client.Groups.OnGroupProfile += Groups_OnGroupProfile;
Client.Groups.GroupProfile += Groups_OnGroupProfile;
Client.Avatars.RequestAvatarName(key);
Client.Groups.RequestGroupProfile(key);
@@ -39,13 +39,13 @@ namespace OpenMetaverse.TestClient.Commands
}
Client.Avatars.OnAvatarNames -= Avatars_OnAvatarNames;
Client.Groups.OnGroupProfile -= Groups_OnGroupProfile;
Client.Groups.GroupProfile -= Groups_OnGroupProfile;
return result.ToString();
}
void Groups_OnGroupProfile(Group group)
void Groups_OnGroupProfile(object sender, GroupProfileEventArgs e)
{
result.AppendLine("Group: " + group.Name + " " + group.ID);
result.AppendLine("Group: " + e.Group.Name + " " + e.Group.ID);
waitQuery.Set();
}