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")); }