setConnectionL() public method

public setConnectionL ( String text ) : void
text String
return void
Ejemplo n.º 1
0
        public static void OnCallAccept(IAsyncResult async)
        {
            try
            {
                clientS = listenS.EndAccept(async);
                f.setConnectionL("Call Accepted");
                socketOpen = true;
            }

            catch (Exception e)
            {
                f.setConnectionL(e.ToString());
            }
        }
Ejemplo n.º 2
0
        static void Main()
        {
            b = new Bitmap(640, 480, PixelFormat.Format32bppArgb);

            hand  = new JointTracker();
            elbow = new JointTracker();
            myK   = KinectSensor.KinectSensors[0];
            myK.ColorStream.Enable(ColorImageFormat.RgbResolution640x480Fps30);
            myK.SkeletonStream.Enable();
            myK.DepthStream.Enable(DepthImageFormat.Resolution320x240Fps30);

            myK.Start();

            myK.SkeletonFrameReady += new EventHandler <SkeletonFrameReadyEventArgs>(SkeletonFrameReady);
            myK.ColorFrameReady    += new EventHandler <ColorImageFrameReadyEventArgs>(ColorImageFrameReady);
            myK.DepthFrameReady    += new EventHandler <DepthImageFrameReadyEventArgs>(DepthFrameReady);


            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            f = new cameraForm();

            beginListening();
            f.setConnectionL("Listening on port " + PORT);

            Application.Run(f);
        }
Ejemplo n.º 3
0
        static void Main()
        {
            b = new Bitmap(640, 480, PixelFormat.Format32bppArgb);

            hand = new JointTracker();
            elbow = new JointTracker();
            myK = KinectSensor.KinectSensors[0];
            myK.ColorStream.Enable(ColorImageFormat.RgbResolution640x480Fps30);
            myK.SkeletonStream.Enable();
            myK.DepthStream.Enable(DepthImageFormat.Resolution320x240Fps30);

            myK.Start();

            myK.SkeletonFrameReady += new EventHandler<SkeletonFrameReadyEventArgs>(SkeletonFrameReady);
            myK.ColorFrameReady += new EventHandler<ColorImageFrameReadyEventArgs>(ColorImageFrameReady);
            myK.DepthFrameReady += new EventHandler<DepthImageFrameReadyEventArgs>(DepthFrameReady);

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            f = new cameraForm();

            beginListening();
            f.setConnectionL("Listening on port " + PORT);

            Application.Run(f);
        }