Ejemplo n.º 1
0
        public void Application_Idle(object sender, EventArgs e)
        {
            if (m_formMain.ProjectLoaded && m_formMain.WindowState != FormWindowState.Minimized)
            {
                try
                {
                    // Render the scene if we are idle
                    if (m_renderPanel.Handle != null && m_renderPanel.Visible)
                    {
                        RenderMethods.RenderFrame();
                    }
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }

                if (m_fakeFocus)
                {
                    m_formMain.Invalidate();
                }
            }
        }