Esempio n. 1
0
        /// <summary>
        /// 增加麻醉事件
        /// </summary>
        /// <param name="vitalSignGraph"></param>
        /// <param name="eventMark"></param>
        private void AddAnesEventMark(EventMarkModel eventMark, DateTime eventTime, string text, string anesFlag)
        {
            Color                  color      = Color.Black;
            string                 alias      = "";
            SymbolModel            symbol     = null;
            MedSymbolCurveDetail   detailFlag = GetVitalSignEventMark(anesFlag);
            SymbolCurveDetailModel detail     = null;

            if (detailFlag != null)
            {
                detail = ConvertToDetailModel(GetVitalSignEventMark(anesFlag));
            }
            if (detail != null)
            {
                symbol = new SymbolModel(detail.SymbolType);
                if (symbol.SymbolType == SymbolType.Text)
                {
                    symbol.Text = detail.SymbolEntry;
                }
                symbol.Pen = new Pen(detail.Color);
                color      = detail.Color;
                alias      = anesFlag;
            }
            eventMark.AddPoint(eventTime, 0, text, symbol, color, alias);
        }
Esempio n. 2
0
        private SymbolCurveDetailModel ConvertToDetailModel(MedSymbolCurveDetail curveDetailList)
        {
            SymbolCurveDetailModel detailModel = new SymbolCurveDetailModel();

            detailModel.Text        = curveDetailList.Text;
            detailModel.SymbolEntry = curveDetailList.SymbolEntry;
            detailModel.Color       = curveDetailList.Color;
            string type = curveDetailList.SymbolType.ToString();

            detailModel.SymbolType = (SymbolType)Enum.Parse(typeof(SymbolType), type);
            return(detailModel);
        }