private void CtrlBtn_Click(object sender, EventArgs e) { if (_bIsStart == false) { _pGPSCtrl.CreateGPSCtrl(); _nSaveCount = 0; CameraCtrl.Acquisition = 1; UpdateTimeTicker.Start(); CtrlBtn.Text = "Stop"; _bIsStart = true; } else { _pGPSCtrl.DestroyGPSCtrl(); CameraCtrl.Acquisition = 0; UpdateTimeTicker.Stop(); CtrlBtn.Text = "Start"; _bIsStart = false; } }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void CtrlBtn_Click(object sender, EventArgs e) { if (_bIsStart == false) { _pGPSCtrl.CreateGPSCtrl(); _nSaveCount = 0; StartLiveVideo(); UpdateTimeTicker.Start(); CtrlBtn.Text = "Stop"; _bIsStart = true; } else { _pGPSCtrl.DestroyGPSCtrl(); StopLiveVideo(); UpdateTimeTicker.Stop(); CtrlBtn.Text = "Start"; _bIsStart = false; } }