Example #1
0
        public virtual void AddTransponder(Satellite sat, Transponder trans)
        {
            trans.Satellite = sat;

            if (Transponder.ContainsKey(trans.Id))
            {
                Warnings.AppendFormat("Duplicate transponder data record for satellite #{0} with id {1}\r\n", sat?.Id, trans.Id);
                return;
            }

            sat?.Transponder.Add(trans.Id, trans);
            Transponder.Add(trans.Id, trans);
        }
Example #2
0
        public virtual void AddChannel(ChannelList list, ChannelInfo channel)
        {
            if (list == null)
            {
                Warnings.AppendFormat("No list found to add channel '{0}'\r\n", channel);
                return;
            }

            string warning = list.AddChannel(channel);

            if (warning != null)
            {
                Warnings.AppendLine(warning);
            }
        }