Example #1
0
        public int CompareTo(DigitalInput other)
        {
            int result = DeviceId.CompareTo(other.DeviceId);

            if (result == 0)
            {
                result = Index.CompareTo(other.Index);
            }
            return(result);
        }
Example #2
0
        public int CompareTo(Device other)
        {
            int result = DeviceId.CompareTo(other.DeviceId);

            if (result == 0)
            {
                result = Description.CompareTo(other.Description);
            }
            return(result);
        }
Example #3
0
        public int CompareTo(object obj)
        {
            UId id = obj as UId;

            if (id != null)
            {
                return(ManufacturerId.CompareTo(id.ManufacturerId) + DeviceId.CompareTo(id.DeviceId));
            }

            return(-1);
        }
 public int CompareTo(LED7DisplayOutput other)
 {
     if (DeviceId == null)
     {
         return Index.CompareTo(other.Index);
     }
     int result = DeviceId.CompareTo(other.DeviceId);
     if (result == 0)
     {
         result = Index.CompareTo(other.Index);
     }
     return result;
 }
        public int CompareTo(DigitalOutput other)
        {
            if (DeviceId == null)
            {
                return(Index.CompareTo(other.Index));
            }
            int result = DeviceId.CompareTo(other.DeviceId);

            if (result == 0)
            {
                result = Index.CompareTo(other.Index);
            }
            return(result);
        }
Example #6
0
        public int CompareTo(Tag other)
        {
            if (other == null)
            {
                return(1);
            }

            int result = 0;

            result = m_Checked.CompareTo(other.m_Checked);
            if (result != 0)
            {
                return(result);
            }

            result = m_Enabled.CompareTo(other.m_Enabled);
            if (result != 0)
            {
                return(result);
            }

            result = m_Visible.CompareTo(other.m_Visible);
            if (result != 0)
            {
                return(result);
            }

            result = m_ValueSelect1.CompareTo(other.m_ValueSelect1);
            if (result != 0)
            {
                return(result);
            }

            result = m_ValueSelect2.CompareTo(other.m_ValueSelect2);
            if (result != 0)
            {
                return(result);
            }

            result = ChannelId.CompareTo(other.ChannelId);
            if (result != 0)
            {
                return(result);
            }

            result = DataBlockId.CompareTo(other.DataBlockId);
            if (result != 0)
            {
                return(result);
            }

            result = DeviceId.CompareTo(other.DeviceId);
            if (result != 0)
            {
                return(result);
            }

            result = DataType.CompareTo(other.DataType);
            if (result != 0)
            {
                return(result);
            }

            result = Address.CompareTo(other.Address);
            if (result != 0)
            {
                return(result);
            }

            result = TagName.CompareTo(other.TagName);
            if (result != 0)
            {
                return(result);
            }

            result = TagId.CompareTo(other.TagId);
            if (result != 0)
            {
                return(result);
            }

            result = Timestamp.CompareTo(other.Timestamp);
            if (result != 0)
            {
                return(result);
            }

            result = Description.CompareTo(other.Description);
            if (result != 0)
            {
                return(result);
            }

            return(result);
        }