Example #1
0
        public void ShowInfo(string msg, StationBase station, int maxCount = 5)
        {
            var modellist = InfoList.Where(m => m.StationName.Equals(station.StationName)).First();

            if (modellist != null)
            {
                modellist.InfoCollect.Add(msg);
                while (modellist.InfoCollect.Count > maxCount)
                {
                    modellist.InfoCollect.RemoveAt(0);
                }
            }
        }