/*! * Instructs HOOPS to redraw the scene * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the System.Windows.Forms.UserControl.paint event */ protected void PanelPaint(object sender, PaintEventArgs e) { if (!this.Disposing && (m_pHView != null)) { HCS.Control_Update_By_Key(m_pHView.GetViewKey(), "redraw everything"); m_pHView.Update(); } }
/*! * Instructs HOOPS to redraw the scene * * \param sender A reference to an object which is the root of the type hierarchy * \param e Provides data for the System.Windows.Forms.Control.paint event */ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (!this.Disposing && (m_pHView != null)) { HCS.Control_Update_By_Key(m_pHView.GetViewKey(), "redraw everything"); m_pHView.Update(); } }