示例#1
0
        public override string GetStringAttributes()
        {
            if (string.IsNullOrWhiteSpace(CacheAttributes))
            {
                if (SizeArea > 0)
                {
                    SetAttribute("size", SizeArea.ToString());
                }
                else
                {
                    RemoveAttribute("size");
                }

                if (Autocomplete != null)
                {
                    SetAttribute("autocomplete", Autocomplete == true ? "on" : "off");
                }
                else
                {
                    RemoveAttribute("autocomplete");
                }
            }

            return(base.GetStringAttributes());
        }
示例#2
0
        public override int GetHashCode() // переопределение метода GetHashCode()
        {
            var hash = 19;

            hash = hash * 37 + CenterX.GetHashCode();
            hash = hash * 37 + CenterY.GetHashCode();
            hash = hash * 37 + SizeArea.GetHashCode();
            hash = hash * 37 + FractalType.GetHashCode();

            return(hash);
        }
示例#3
0
        public override string GetStringAttributes()
        {
            if (SizeArea > 0)
            {
                SetAttribute("rows", SizeArea.ToString());
            }
            else
            {
                RemoveAttribute("rows");
            }

            return(base.GetStringAttributes());
        }