} // 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)
        // ke9ns add above
        //================================================================================================
        //==================================================================================================



        #endregion

        #region Routines

        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));
        } // compareto
示例#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;
 }