}   //  GetHashCode

        public override bool Equals(object compare)
        {
            if (compare.GetType() == typeof(PrintDataElement))
            {
                PrintDataElement pde = (PrintDataElement)compare;
                if (pde.GetColumnName().Equals(_columnName))
                {
                    if (pde.GetValue() != null && pde.GetValue().Equals(_value))
                    {
                        return(true);
                    }
                    if (pde.GetValue() == null && _value == null)
                    {
                        return(true);
                    }
                }
            }
            return(false);
        }
Exemple #2
0
        }       //	hasLevelNo

        /// <summary>
        /// Get Line Level Number for current row
        /// </summary>
        /// <returns>line level no 0 = default</returns>
        public int GetLineLevelNo()
        {
            if (_nodes == null || !_hasLevelNo)
            {
                return(0);
            }

            for (int i = 0; i < _nodes.Count; i++)
            {
                Object o = _nodes[i];
                if (o.GetType() == typeof(PrintDataElement))
                {
                    PrintDataElement pde = (PrintDataElement)o;
                    if (LEVEL_NO.Equals(pde.GetColumnName()))
                    {
                        int ii = (int)pde.GetValue();
                        return(ii);
                    }
                }
            }
            return(0);
        }       //	getLineLevel