/// <summary>
        /// Initializes a new instance of the <see cref="FieldWrapper"/> class.
        /// </summary>
        /// <param name="field">The field.</param>
        public FieldWrapper(Field field)
        {
            Validator.CheckIfNull(field, nameof(field));

            this.Field = field;
            this.IsView = false;
        }
Example #2
0
        public FieldWrapper(Field field)
        {
            if(field == null)
            {
                throw new ArgumentNullException("field");
            }

            this.Field = field;
            this.IsView = false;
        }
Example #3
0
        public FieldWrapper GetField(int content)
        {
            Field field;

            if (!this.Fields.TryGetValue(content, out field))
            {
                field = new Field(content);

                this.Fields.Add(content, field);
            }

            return new FieldWrapper(field);
        }