public void Beep(FingerprintServer server, int nCount) { if (this.InvokeRequired) { _Beep d = new _Beep(Beep); this.BeginInvoke(d, new object[] { server, nCount }); } else { if (m_bBeep == true) { server.Beep(nCount); } } }
public void DisplayFeatureInfo(FingerprintServer server, int nQuality) { if (this.InvokeRequired) { _DisplayFeatureInfo d = new _DisplayFeatureInfo(DisplayFeatureInfo); this.Invoke(d, new object[] { server, nQuality }); } else { string strText = server.GetFeatureInfo(nQuality, this.m_bGameState); this.label_message.Text = strText; if (this.m_bGameState == true && this.m_bSpeak == false && this.m_bBeep == true) { _Beep d = new _Beep(Beep); this.BeginInvoke(d, new object[] { server, 1 }); } } }