/// <summary> /// 获取语音命令列表 /// </summary> /// <returns></returns> public List <VicCmd> GetVoiceCommand() { List <VicCmd> vcmd = new List <VicCmd>(); DataSet ds = ExecuteQuery("select * from viccmd"); foreach (DataRow row in ds.Tables[0].Rows) { VicCmd vc = new VicCmd { Description = row["Desc"].ToString(), Command = int.Parse(row["Cmd"].ToString()) }; vcmd.Add(vc); } return(vcmd); }
/// <summary> /// 获取语音命令列表 /// </summary> /// <returns></returns> public List<VicCmd> GetVoiceCommand() { List<VicCmd> vcmd = new List<VicCmd>(); DataSet ds = ExecuteQuery("select * from viccmd"); foreach (DataRow row in ds.Tables[0].Rows) { VicCmd vc = new VicCmd { Description = row["Desc"].ToString(), Command = int.Parse(row["Cmd"].ToString()) }; vcmd.Add(vc); } return vcmd; }