private void CancelReq_Click(object sender, EventArgs e) { if (null != m_w) { m_w.cancelRequest(m_uReqId); } }
public static void Stop(ulong id) { lock (_threadLock) { _api.cancelRequest(id); _dict.Remove(id); } }
private void Form1_FormClosing(object sender, FormClosingEventArgs e) { w.cancelRequest(0); }