示例#1
0
文件: Program.cs 项目: chrhodes/VNC
        static void Main(string[] args)
        {
            Console.WriteLine("Client Starting ...");

            using (LiveViewClient client = new LiveViewClient())
            {
                client.DisplayLogEntry("Hello from the client");
            }

            if (!EventLog.SourceExists(source))
            {
                EventLog.CreateEventSource(source, log);
            }

            EventLog.WriteEntry(source, "Hello from the client");

            Console.WriteLine("Client Sent Message");
            Console.ReadLine();
        }
示例#2
0
 /// <summary>
 /// default constructor
 /// </summary>
 public LiveViewListener()
 {
     client = new LiveViewClient();
 }