public static void SetCurrentWindow(int windowID) { if (!NativeMethods.TwSetCurrentWindow(windowID)) { throw new AntTweakBarException("TwSetCurrentWindow failed."); } }