Пример #1
0
 public virtual void copy(SpectrumParameters that)
 {
     bsStartFreq  = that.bsStartFreq;
     bsStopFreq   = that.bsStopFreq;
     bsXoverBand  = that.bsXoverBand;
     bsFreqScale  = that.bsFreqScale;
     bsAlterScale = that.bsAlterScale;
     bsNoiseBands = that.bsNoiseBands;
 }
Пример #2
0
        public override bool Equals(object obj)
        {
            if (obj is SpectrumParameters)
            {
                SpectrumParameters that = (SpectrumParameters)obj;

                if (bsStartFreq != that.bsStartFreq)
                {
                    return(false);
                }
                if (bsStopFreq != that.bsStopFreq)
                {
                    return(false);
                }
                if (bsXoverBand != that.bsXoverBand)
                {
                    return(false);
                }
                if (bsFreqScale != that.bsFreqScale)
                {
                    return(false);
                }
                if (bsAlterScale != that.bsAlterScale)
                {
                    return(false);
                }
                if (bsNoiseBands != that.bsNoiseBands)
                {
                    return(false);
                }

                return(true);
            }

            return(base.Equals(obj));
        }