private void DlgSelectionBase_FormClosing(object sender, FormClosingEventArgs e) { try { _kaixinBase.StopThread(); } catch (Exception ex) { Program.ShowMessageBox("DlgSelectionBase", ex); } }
private void btnCancel_Click(object sender, EventArgs e) { try { if (_kaixinbase != null) { _kaixinbase.StopThread(); } SetControlStatus(true); } catch (Exception ex) { Program.ShowMessageBox("DlgFriendValidation.btnCancel_Click", ex); } }