void ModelAnimTimerElapsed(Object sender, ElapsedEventArgs args) { if (m_camera.AnimTick() == false) { m_modelAnimTmr.Stop(); m_modelAnimTmr = null; } glControl1.Invalidate(); }
void m_modelAnimTmr_Tick(object sender, EventArgs e) { bool cameraon = m_camera.AnimTick(); bool axison = m_axisCam.AnimTick(); if ((cameraon == false) && (axison == false)) { m_modelAnimTmr.Stop(); m_modelAnimTmr = null; } UpdateView(); }