예제 #1
0
        public bool IsEqualTo(NavObjectModel objectToCompare)
        {
            if (objectToCompare == null)
            {
                return(false);
            }

            if (this.ObjectLines.Count != objectToCompare.ObjectLines.Count)
            {
                return(false);
            }

            for (int i = 0; i < this.ObjectLines.Count; i++)
            {
                string lineA = GetLine(i);
                string lineB = objectToCompare.GetLine(i);

                if (!lineA.Equals(lineB))
                {
                    return(false);
                }
            }

            return(true);
        }
예제 #2
0
        public bool IsCodeEqual(NavObjectModel objectToCompare)
        {
            if (objectToCompare == null)
            {
                return(false);
            }

            if (this.Code.Count != objectToCompare.Code.Count)
            {
                return(false);
            }

            for (int i = 0; i < this.Code.Count; i++)
            {
                string lineA = this.Code[i];
                string lineB = string.Empty;
                if (objectToCompare.Code.Count > i)
                {
                    lineB = objectToCompare.Code[i];
                }

                if (!lineA.Equals(lineB))
                {
                    return(false);
                }
            }

            return(true);
        }
예제 #3
0
        public bool IsExisting(NavObjectModel objectToCompare)
        {
            if (objectToCompare == null)
            {
                return(false);
            }

            return(true);
        }