Beispiel #1
0
        public static DataScan FromName(string from)
        {
            if (from == null)
            {
                return(null);
            }

            DataScan result = DATASCANS.FirstOrDefault(v => v.name == from);

            if (result == null)
            {
                Logging.Report("Unknown Data Link name " + from);
            }
            return(result);
        }
Beispiel #2
0
        public static DataScan FromEDName(string from)
        {
            if (from == null)
            {
                return(null);
            }

            string   tidiedFrom = from == null ? null : from.Replace(";", "").ToLowerInvariant();
            DataScan result     = DATASCANS.FirstOrDefault(v => v.edname.ToLowerInvariant() == tidiedFrom);

            if (result == null)
            {
                Logging.Report("Unknown Data Link ED name " + from);
                result = new DataScan(from, tidiedFrom);
            }
            return(result);
        }