public void WindowClosed(RenderWindow rw) { // Only do this for the Main Window if ( rw == Window ) { Root.Instance.QueueEndRendering(); } }