Example #1
0
        /// <summary>
        /// Gets the current data of the specified channel of the certain kind.
        /// </summary>
        public CnlData GetCurrentData(int cnlNum, CurrentDataKind kind)
        {
            if (cnlTags.TryGetValue(cnlNum, out CnlTag cnlTag))
            {
                switch (kind)
                {
                case CurrentDataKind.Current:
                    return(CnlData[cnlTag.Index]);

                case CurrentDataKind.Previous:
                    return(PrevCnlData[cnlTag.Index]);

                case CurrentDataKind.PreviousDefined:
                    return(PrevCnlDataDef[cnlTag.Index]);
                }
            }

            return(Data.Models.CnlData.Empty);
        }
Example #2
0
 /// <summary>
 /// Gets the current data of the specified channel of the certain kind.
 /// </summary>
 public CnlData GetCurrentData(int cnlNum, CurrentDataKind kind)
 {
     return(coreLogic.GetCurrentData(cnlNum, kind));
 }