Пример #1
0
        private void IntializeMouseEventCtrl()
        {
            List <MouseDetectedRegion> regions = new List <MouseDetectedRegion>();

            gMouseEventCtrl = new MouseEventCtrl
            {
                MonitorMaxRect   = new Rect(new Point(0, 0), new Point(1600, 1000)),
                DetectionRegions = regions.ToArray()
            };
        }
Пример #2
0
        private MouseEventCtrl IntializeMouseEventCtrl()
        {
            List <MouseDetectedRegion> regions = new List <MouseDetectedRegion>();

            MouseEventCtrl mec = new MouseEventCtrl
            {
                MonitorMaxRect   = new Rect(new Point(0, 0), new Point(SpaceCanvas.Width, SpaceCanvas.Height)),
                DetectionRegions = regions.ToArray()
            };

            return(mec);
        }