예제 #1
0
        }     //end (btnPlay_Click_1)

        /// <summary>
        /// used to pause the scenegraph
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnPause_Click_1(object sender, EventArgs e)
        {
            try
            {
                if (!Equals(m_objShotBox, null))
                {
                    btnPause.BackColor = Color.DarkGray;
                    m_objShotBox.Pause();
                    m_bIsPause = true;
                } //end (if)
            }     //end (try)
            catch (Exception ex)
            {
                LogWriter.WriteLog(MODULENAME, ex);
            } //end (catch)
        }     //end (btnPause_Click_1)
예제 #2
0
 /// <summary>
 /// used to pause the default controller
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPauseDefaultController_Click(object sender, EventArgs e)
 {
     try
     {
         if (!Equals(m_objShotBox, null))
         {
             m_objShotBox.Pause();
             m_objShotBox.Controllers[0].Pause();
             m_bIsPauseShotBox = true;
         }
     }
     catch (Exception ex)
     {
         LogWriter.WriteLog("error in pausing controller", ex);
     }
 }
예제 #3
0
 /// <summary>
 /// used to pause the scenegraph
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnPause_Click(object sender, EventArgs e)
 {
     try
     {
         if (!Equals(m_objShotBox, null))
         {
             btnPause.BackColor = Color.DarkGray;
             m_objShotBox.Pause();
             m_isPause = true;
         }
     }
     catch (Exception ex)
     {
         LogWriter.WriteLog("error in pausing the scenegraph", ex.Message);
     }
 }