protected override void OnMouse(float x, float y, int buttons, float t) { KioskScene kscene = scene as KioskScene; if (kscene != null) { kscene.OnMouse(x, y, buttons, t); } }
protected override void OnInitialized(System.EventArgs e) { if (KinectConfig != null) { MainWindow mainwin = (MainWindow)Parent; //mainwin.FullScreen(true); try { scene = new KioskScene(GetMediaPath(KinectConfig)); } catch (System.IO.FileNotFoundException exc) { SharedWorld.LogError(exc.Message); scene = new KioskScene(); } } else { scene = new KioskScene(); } base.OnInitialized(e); }