标签:div catch message try vat throw required else sas
public delegate void SpeechDelegate(string strGNo, string strNumber); private void SpeechNumber(string strGNo, string strNumber) { try { if (this.InvokeRequired) { this.BeginInvoke(new SpeechDelegate(this.SpeechNumber), strGNo, strNumber); } else { SpeechVoiceSpeakFlags SpFlags = SpeechVoiceSpeakFlags.SVSFlagsAsync; SpVoice Voice = new SpVoice(); Voice.Voice = Voice.GetVoices().Item(0); Voice.Rate = 0; int i = Voice.Speak("请" + strNumber + "号" + strPatientName + "到" + strGNo + "号窗口", SpFlags); } } catch (Exception ex) { LogCommon.WriteLog(ex.Source.ToString() + "-" + ex.TargetSite.Name + "-" + ex.Message); throw ex; } }
标签:div catch message try vat throw required else sas
原文地址:https://www.cnblogs.com/6B23/p/12206290.html