Beispiel #1
0
        }     //end (btnPause_Click_1)

        /// <summary>
        /// used to stop the scenegraph
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnStop_Click_1(object sender, EventArgs e)
        {
            try
            {
                if (!Equals(m_objShotBox, null))
                {
                    btnStop.BackColor = Color.DarkGray;
                    m_objShotBox.Stop();
                    m_bIsPause = false;
                } //end (if)
            }     //end (try)
            catch (Exception ex)
            {
                LogWriter.WriteLog(MODULENAME, ex);
            } //end (catch)
        }     //end (btnStop_Click_1)
 /// <summary>
 /// used to stop the scenegraph
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnStop_Click(object sender, EventArgs e)
 {
     try
     {
         if (!Equals(m_objShotBox, null))
         {
             btnStop.BackColor = Color.DarkGray;
             m_objShotBox.Stop();
             m_isPause = false;
         }
     }
     catch (Exception ex)
     {
         LogWriter.WriteLog("error in stoping the scenegraph", ex.Message);
     }
 }
Beispiel #3
0
        }     //end (btnPauseDefaultController_Click)

        /// <summary>
        /// used to stop the default controller
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnStopDefaultController_Click(object sender, EventArgs e)
        {
            try
            {
                if (!Equals(m_objShotBox, null))
                {
                    m_bIsPause = false;
                    m_bIsStop  = true;
                    m_objShotBox.Stop();
                    m_iPlayCount = 0;
                } //end (if)
            }     //end (try)
            catch (Exception ex)
            {
                LogWriter.WriteLog(MODULENAME, ex);
            } //end (catch)
        }     //end (btnStopDefaultController_Click)
Beispiel #4
0
 /// <summary>
 /// used to stop the default controller
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnStopDefaultController_Click(object sender, EventArgs e)
 {
     try
     {
         if (!Equals(m_objShotBox, null))
         {
             m_bIsPauseShotBox = false;
             m_bIsStop         = true;
             m_objShotBox.Stop();
             m_objShotBox.Controllers[0].Stop();
             m_iPlayCount = 0;
         }
     }
     catch (Exception ex)
     {
         LogWriter.WriteLog("error in stoping controller", ex);
     }
 }