示例#1
0
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            String host = args.Length == 0 ? "ws://localhost:8080" : args[0];
            // Hardcode the server adress for now.
            ScreenStreamer streamer = new ScreenStreamer(host);

            streamer.Toggle();
            var endlessTask = new TaskCompletionSource <bool>().Task;

            endlessTask.Wait();
        }
示例#2
0
 private void Button2_Click(object sender, EventArgs e)
 {
     streamer.Toggle();
 }