Beispiel #1
0
        } // memoryrecord

        public MemoryRecord(MemoryRecord rec)
        {
            group          = rec.group;
            rx_freq        = rec.rx_freq;
            name           = rec.name;
            dsp_mode       = rec.dsp_mode;
            scan           = rec.scan;
            tune_step      = rec.tune_step;
            repeater_mode  = rec.repeater_mode;
            rptr_offset    = rec.rptr_offset;
            ctcss_on       = rec.ctcss_on;
            ctcss_freq     = rec.ctcss_freq;
            power          = rec.power;
            deviation      = rec.deviation;
            split          = rec.split;
            tx_freq        = rec.tx_freq;
            rx_filter      = rec.rx_filter;
            rx_filter_low  = rec.rx_filter_low;
            rx_filter_high = rec.rx_filter_high;
            comments       = rec.comments;
            agc_mode       = rec.agc_mode;
            agct           = rec.agct;


            startdate  = rec.startdate;  // ke9ns add  for scheduled freq change and optional recording
            scheduleon = rec.scheduleon; // ke9ns add  for scheduled freq change and optional recording
            duration   = rec.duration;   // ke9ns add  for scheduled freq change and optional recording
            repeating  = rec.repeating;  // ke9ns add  for scheduled freq change and optional recording
            recording  = rec.recording;  // ke9ns add  for scheduled freq change and optional recording
            repeatingm = rec.repeatingm; // ke9ns add  for scheduled freq change and optional recording
            extra      = rec.extra;      // ke9ns add  for scheduled freq change and optional recording
        } //  MemoryRecord(MemoryRecord rec)
Beispiel #2
0
        public int CompareTo(object obj) // to implement the IComparable interface
        {
            MemoryRecord rec = (MemoryRecord)obj;

            if (this.Group != rec.Group)
            {
                return(this.Group.CompareTo(rec.Group));
            }

            if (this.RXFreq != rec.RXFreq)
            {
                return(this.RXFreq.CompareTo(rec.RXFreq));
            }

            return(this.Name.CompareTo(rec.Name));
        }
Beispiel #3
0
 public MemoryRecord(MemoryRecord rec)
 {
     group          = rec.group;
     rx_freq        = rec.rx_freq;
     name           = rec.name;
     dsp_mode       = rec.dsp_mode;
     scan           = rec.scan;
     tune_step      = rec.tune_step;
     repeater_mode  = rec.repeater_mode;
     rptr_offset    = rec.rptr_offset;
     ctcss_on       = rec.ctcss_on;
     ctcss_freq     = rec.ctcss_freq;
     power          = rec.power;
     deviation      = rec.deviation;
     split          = rec.split;
     tx_freq        = rec.tx_freq;
     rx_filter      = rec.rx_filter;
     rx_filter_low  = rec.rx_filter_low;
     rx_filter_high = rec.rx_filter_high;
     comments       = rec.comments;
     agc_mode       = rec.agc_mode;
     agct           = rec.agct;
 }
Beispiel #4
0
 public MemoryRecord(MemoryRecord rec)
 {
     group = rec.group;
     rx_freq = rec.rx_freq;
     name = rec.name;
     dsp_mode = rec.dsp_mode;
     scan = rec.scan;
     tune_step = rec.tune_step;
     repeater_mode = rec.repeater_mode;
     rptr_offset = rec.rptr_offset;
     ctcss_on = rec.ctcss_on;
     ctcss_freq = rec.ctcss_freq;
     power = rec.power;
     deviation = rec.deviation;
     split = rec.split;
     tx_freq = rec.tx_freq;
     rx_filter = rec.rx_filter;
     rx_filter_low = rec.rx_filter_low;
     rx_filter_high = rec.rx_filter_high;
     comments = rec.comments;
     agc_mode = rec.agc_mode;
     agct = rec.agct;
 }
Beispiel #5
0
 private MemoryRecord GetChannelRecord(string channel)
 {
     MemoryRecord rec = new MemoryRecord();
     try
     {
         SortableBindingList<MemoryRecord> list = GetMemoryList();
         int n = 0;
         for (n = 0; n < list.Count; n++)
         {
             if (list[n].Comments.Substring(0, 4) == channel + ":")
                 rec = list[n];
         }
     }
     catch
     {
     }
     return rec;
 }
Beispiel #6
0
 //Saves the radio configuration to a specific channel number (edit)
 public string ZZMZ(string s)
 {
     if (GetIndex(s) >= 0)
     {
         try
         {
             MemoryRecord oldrec = GetChannelRecord(s);
             MemoryRecord newrec = new MemoryRecord();
             newrec.Group = oldrec.Group;
             newrec.RXFreq = console.VFOAFreq;
             newrec.Name = oldrec.Name;
             newrec.DSPMode = console.RX1DSPMode;
             newrec.Scan = oldrec.Scan;
             newrec.TuneStep = console.TuneStepList[console.TuneStepIndex].Name;
             newrec.RPTR = console.CurrentFMTXMode;
             newrec.RPTROffset = console.FMTXOffsetMHz;
             newrec.CTCSSOn = console.dsp.GetDSPTX(0).CTCSSFlag;
             newrec.CTCSSFreq = console.dsp.GetDSPTX(0).CTCSSFreqHz;
             newrec.Power = console.PWR;
             newrec.Deviation = (int)console.dsp.GetDSPTX(0).TXFMDeviation;
             newrec.Split = console.VFOSplit;
             newrec.TXFreq = console.TXFreq;
             newrec.RXFilter = console.RX1Filter;
             newrec.RXFilterLow = console.RX1FilterLow;
             newrec.RXFilterHigh = console.RX1FilterHigh;
             newrec.Comments = oldrec.Comments;
             newrec.AGCMode = console.dsp.GetDSPRX(0, 0).RXAGCMode;
             newrec.AGCT = console.RF;
             console.MemoryList.List.Remove(oldrec);
             console.MemoryList.List.Add(newrec);
             return string.Empty;
         }
         catch
         {
             parser.Verbose_Error_Code = 4;
             return parser.Error1;
         }
     }
     else
     {
         parser.Verbose_Error_Code = 9;
         return parser.Error1;
     }
 }