Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TableColumn"/> class.
        /// </summary>
        /// <param name="columnName">Column name.</param>
        /// <param name="values">Values.</param>
        /// <param name="align">Content align.</param>
        public TableColumn(string columnName, IEnumerable <string> values, ContentAlign align)
        {
            if (columnName == null)
            {
                throw new ArgumentNullException(nameof(columnName));
            }

            if (values == null)
            {
                throw new ArgumentNullException(nameof(values));
            }

            var tmpList = new List <string>();

            tmpList.Add(columnName);
            tmpList.AddRange(values);
            this.values       = tmpList.ToArray();
            this.MaxLenqth    = this.values.Max(str => str.Length);
            this.ContentAlign = align;
        }
Ejemplo n.º 2
0
        public MvcHtmlString GoToText(object htmlAttributes = null, ContentAlign contentAlign = ContentAlign.Right)
        {
            uint val = (uint)currPage;

            return(htmlHelper.TypedTextBox(goTextName, val, htmlAttributes, contentAlign: contentAlign));
        }