示例#1
0
        /// <summary>
        /// Configures the device to capture.
        /// </summary>
        public void Configure()
        {
            TC08DeviceImports.SetRejectionFreq(Handle, (short)FrequencyRejection);

            for (int i = 1; i < TC08MaxChannels + 1; i++)
            {
                TC08ChannelConfig found = EnabledChannels.FirstOrDefault(dev => dev.Number == i);
                SetChannel(i, found != null ? found.ThermoType : ' ');
            }
        }
        public override bool Equals(object obj)
        {
            TC08ChannelConfig newOne = obj as TC08ChannelConfig;

            if (newOne == null)
            {
                throw new ArgumentException("Not TC08ChannelConfig", "obj");
            }

            return(Number.Equals(newOne.Number) && ThermoType.Equals(newOne.ThermoType));
        }