Пример #1
0
 private void OnCancelButtonClick(Object obj, EventArgs eventArgs)
 {
     if (m_state == State.Work)
     {
         m_core.Stop();
         m_state = State.Stopped;
         m_cancelButton.Enabled = false;
     }
 }
Пример #2
0
 private void OnStopButtonClick(Object obj, EventArgs eventArgs)
 {
     if (m_state == State.Search)
     {
         m_core.Stop();
         m_state = State.Stopped;
         m_stopButton.Enabled = false;
     }
 }