Example #1
0
        public bool ValidateField(OfficeWorld world)
        {
            if (this.associatedToken != null)
            {
                this.text = this.associatedToken.Text;

                if (this.trueText.ToLower().Equals(this.associatedToken.Text.ToLower()))
                {
                    world.NotifyObjectTextStateChanged(this, true);

                    return(true);
                }
            }
            world.NotifyObjectTextStateChanged(this, false);

            return(false);
        }