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()); }
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); }
public override string GetStringAttributes() { if (SizeArea > 0) { SetAttribute("rows", SizeArea.ToString()); } else { RemoveAttribute("rows"); } return(base.GetStringAttributes()); }