//消息交换事件 private static void DataAnalyse_Trend_EventHandler(object sender, DataAnalyse_Trend_EventArgs e) { DataTrend_LabelInfo pLabelInfo = e.Data.LabelInfo; if (pLabelInfo.DataTrend_KeyPoint != typeDataTrend_KeyPoint.NONE) { zxcConsoleHelper.Debug(true, "监测值:{3}, {0} {1} ({2})", pLabelInfo.DataTrend.ToString(), pLabelInfo.DataTrend_KeyPoint.ToString(), pLabelInfo.Value_KeyLine, Math.Round(pLabelInfo.Value, 6)); } }
protected internal new string getMsg_Infix() { string strMsg = ""; if (_eventArgs != null) { DataTrend_LabelInfo pLabelInfo = _eventArgs.Data.LabelInfo; if (pLabelInfo.DataTrend_KeyPoint == typeDataTrend_KeyPoint.INFLECTION) { string tag0 = pLabelInfo.DataTrend.Get_AttrName() + pLabelInfo.DataTrend_KeyPoint.Get_AttrName(); strMsg = string.Format("\n{0}:{1}({2}).", _tagAlias, tag0, this.getValue_str(pLabelInfo.Value)); } else if (pLabelInfo.DataTrend_KeyPoint == typeDataTrend_KeyPoint.RETREAT) { string tag0 = pLabelInfo.DataTrend.Get_Value() + " " + pLabelInfo.DataTrend_KeyPoint.Get_AttrName(); strMsg = string.Format("\n{0}:{1}({2}). \n前高:{3}%({4})", _tagAlias, tag0, this.getValue_str(pLabelInfo.Value), Math.Round(pLabelInfo.Value_Profit_KeyLine * 100, 2), this.getValue_str(pLabelInfo.Value_KeyLine)); } } return(strMsg); }
protected internal new string getMsg_Infix() { string strMsg = ""; if (_eventArgs != null) { DataTrend_LabelInfo pLabelInfo = _eventArgs.Data.LabelInfo; int nEnum = (int)pLabelInfo.DataTrend_KeyPoint; if (Math.Abs(nEnum) >= 5) { string tag0 = ""; if (pLabelInfo.DataTrend_KeyPoint == typeDataTrend_KeyPoint.INFLECTION) { tag0 = pLabelInfo.DataTrend.Get_AttrName() + " " + pLabelInfo.DataTrend_KeyPoint.Get_AttrName(); } else { tag0 = pLabelInfo.DataTrend.Get_Description() + " " + pLabelInfo.DataTrend_KeyPoint.Get_Description(); } strMsg = string.Format("\n{0}:{3}({4})\n{5} {1}({2}).", _tagAlias, tag0, this.getValue_str(Math.Round(pLabelInfo.Value_KeyLine, 1)).Replace("元", ""), pLabelInfo.Tag, pLabelInfo.Value_TimeType.Get_AttrName(), Math.Round(pLabelInfo.Value, 1)); } } return(strMsg); }