Exemplo n.º 1
0
        public bool CompareValue
            (FormControlInfo that
            )
        {
            bool retVal = false;

            if (Value == null && that.Value == null)
            {
                // both null, so they are equal
                retVal = true;
            }
            else
            {
                if (Value == null || that.Value == null)
                {
                    // one is null, so not equal
                    retVal = false;
                }
                else
                {
                    // return the .Equals() method value, == does not work
                    // the .Equals methost MUST be overridden in
                    // custom classes (list items)
                    retVal = Value.Equals(that.Value);
                }
            }
            return(retVal);
        }
Exemplo n.º 2
0
 public bool CompareTypeName
     (FormControlInfo that
     )
 {
     return
         (Control.GetType().Name == that.Control.GetType().Name &&
          Control.Name == that.Control.Name
         );
 }