Esempio n. 1
0
        public void CloseSystemWindow(SystemWindow systemWindow)
        {
            // Prevent our call to SystemWindow.Close from recursing
            if (winformAlreadyClosing)
            {
                return;
            }

            // Check for RootSystemWindow, close if found
            string windowTypeName = systemWindow.GetType().Name;

            if (windowTypeName == "RootSystemWindow")
            {
                // Close the main (first) PlatformWindow if it's being requested and not this instance
                Glfw.SetWindowShouldClose(glfwWindow, true);

                return;
            }

            aggSystemWindow = this.WindowProvider.TopWindow;
            aggSystemWindow?.Invalidate();
        }