/// <summary> /// Sets channel object from another ChannelObject /// </summary> /// <param name="channelObject">ChannelObject to copy</param> public void SetFrom(ChannelObject channelObject) { SegmentCode = channelObject.SegmentCode; SegmentCodeAlt = channelObject.SegmentCodeAlt; Mode = channelObject.Mode; Power = channelObject.Power; StrobePower = channelObject.StrobePower; }
/// <summary> /// Checks for equality against another ChannelObject /// </summary> /// <param name="channelObject">ChannelObject to compare against</param> /// <returns>True if equal</returns> public bool Equals(ChannelObject channelObject) { return(SegmentCode == channelObject.SegmentCode && SegmentCodeAlt == channelObject.SegmentCodeAlt && Mode == channelObject.Mode && Power == channelObject.Power && StrobePower == channelObject.StrobePower); }