public XbmcCommandSender(string host = XbmcDefaultHost, int UdpPort = XbmcDefaultUdpPort)
 {
     _host = host;
     _port = UdpPort;
     _eventClient = new EventClient();
     Initialize(_host, _port);
 }
        static void Main()
        {
			EventClient eventClient = new EventClient();
			eventClient.Connect("127.0.0.1", 9777);
            eventClient.SendHelo("XBMC Client Demo", IconType.ICON_PNG, "icon.png");
            System.Threading.Thread.Sleep(1000);
            eventClient.SendNotification("XBMC Client Demo", "Notification Message", IconType.ICON_PNG, "/usr/share/xbmc/media/icon.png");
            System.Threading.Thread.Sleep(1000);
            eventClient.SendButton("dpadup", "XG", ButtonFlagsType.BTN_DOWN | ButtonFlagsType.BTN_NO_REPEAT, 0);
            System.Threading.Thread.Sleep(1000);
            eventClient.SendPing();
            System.Threading.Thread.Sleep(1000);
            eventClient.SendMouse(32768, 32768);
            System.Threading.Thread.Sleep(1000);
            eventClient.SendLog(LogTypeEnum.LOGERROR, "Example error log message from XBMC Client Demo");
            System.Threading.Thread.Sleep(1000);
            eventClient.SendAction("Mute");
            System.Threading.Thread.Sleep(1000);
            eventClient.SendBye();
        }