private void OnCancelButtonClick(Object obj, EventArgs eventArgs) { if (m_state == State.Work) { m_core.Stop(); m_state = State.Stopped; m_cancelButton.Enabled = false; } }
private void OnStopButtonClick(Object obj, EventArgs eventArgs) { if (m_state == State.Search) { m_core.Stop(); m_state = State.Stopped; m_stopButton.Enabled = false; } }