示例#1
0
        protected override void Initialize()
        {
            SetWindowOnSurface();
            InitializeSurfaceInput();

            // Subscribe to surface application activation events
            ApplicationServices.WindowInteractive    += OnWindowInteractive;
            ApplicationServices.WindowNoninteractive += OnWindowNoninteractive;
            ApplicationServices.WindowUnavailable    += OnWindowUnavailable;

            base.Initialize();

            eventSender = new SurfaceEventSender();
            eventSender.InitializeSocketCommunication(GetIntProperty("surface.port"));
        }
示例#2
0
        protected override void Initialize()
        {
            SetWindowOnSurface();
            InitializeSurfaceInput();

            // Subscribe to surface application activation events
            ApplicationServices.WindowInteractive += OnWindowInteractive;
            ApplicationServices.WindowNoninteractive += OnWindowNoninteractive;
            ApplicationServices.WindowUnavailable += OnWindowUnavailable;

            base.Initialize();

            eventSender = new SurfaceEventSender();
            eventSender.InitializeSocketCommunication(GetIntProperty("surface.port"));
        }