WIP: Main message scroller rudimentally working

This commit is contained in:
Latif Khalifa
2013-12-01 19:33:47 +01:00
parent 4a58176cac
commit 956a4e85e5
7 changed files with 1128 additions and 150 deletions

View File

@@ -36,7 +36,7 @@ using OpenMetaverse.Packets;
using OpenMetaverse.StructuredData;
using OpenMetaverse;
namespace WinGridProxy
namespace GridProxyGUI
{
public class ProxyManager
{
@@ -201,6 +201,23 @@ namespace WinGridProxy
return false;
}
private static PacketType PacketTypeFromName(string name)
{
Type packetTypeType = typeof(PacketType);
System.Reflection.FieldInfo f = packetTypeType.GetField(name);
if (f == null)
{//throw new ArgumentException("Bad packet type");
return PacketType.Error;
}
return (PacketType)Enum.ToObject(packetTypeType, (int)f.GetValue(packetTypeType));
}
internal void AddUDPDelegate(string packetType, bool add)
{
AddUDPDelegate(PacketTypeFromName(packetType), add);
}
internal void AddUDPDelegate(PacketType packetType, bool add)
{
if (add)