public string GetPromptMessage(string noteName, EnumPromptMessage messageType, string[] param) { string txtValue = GetPromptMessage(noteName, messageType); string test = string.Format(txtValue, param); return(test); }
/// <summary> /// 根据XML节点的名称返回对应的提示信息 /// </summary> /// <param name="nodeName">节点名称</param> /// <param name="EnumPromptMessage">消息提示的类型</param> /// <returns>根据XML节点的名称返回对应的提示信息</returns> public string GetPromptMessage(string nodeName, EnumPromptMessage enumPromptMessage) { if (_promtMessaageData != null && _promtMessaageData.Rows.Count > 0) { DataRow[] array = _promtMessaageData.Select("message_node='" + nodeName + "' and message_type='" + (int)enumPromptMessage + "'"); if (array != null && array.Length > 0) { return(Convert.ToString(array[0]["message_value"])); } return(string.Empty); } return(string.Empty); }