LIBOMV-686 Convert NetworkManager events/delegates to new patterns

* Remove INetworkManager interface (it was not being used for anything)

git-svn-id: http://libopenmetaverse.googlecode.com/svn/libopenmetaverse/trunk@3182 52acb1d6-8a22-11de-b505-999d5b087335
This commit is contained in:
Jim Radford
2009-10-28 08:01:52 +00:00
parent 89cf6ccad0
commit 95a87c7857
46 changed files with 1453 additions and 1130 deletions

View File

@@ -21,8 +21,8 @@ namespace IRCGateway
else
{
_Client = new GridClient();
_Client.Network.OnLogin += new NetworkManager.LoginCallback(Network_OnLogin);
_Client.Self.ChatFromSimulator += new EventHandler<ChatEventArgs>(Self_ChatFromSimulator);
_Client.Network.LoginProgress += Network_OnLogin;
_Client.Self.ChatFromSimulator += Self_ChatFromSimulator;
_Client.Self.IM += Self_IM;
_ClientLogin = _Client.Network.DefaultLoginParams(args[0], args[1], args[2], "", "IRCGateway");
@@ -74,10 +74,10 @@ namespace IRCGateway
Console.WriteLine("[IRC->SL] " + str);
}
}
static void Network_OnLogin(LoginStatus login, string message)
static void Network_OnLogin(object sender, LoginProgressEventArgs e)
{
_IRC.SendMessage(_AutoJoinChannel, message);
_IRC.SendMessage(_AutoJoinChannel, e.Message);
}
}
}