Class that a CustomList uses to figure out the value of a particular row+column
Esempio n. 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:ObjProperty"/> class.
        /// </summary>
        /// <param name="property">The propertyInfo object that will reflect on objects later on to display information with</param>
        /// <param name="propertyIndex">An array of index parameters if the property parameter represents an indexex property</param>
        /// <param name="nested">If the information required resides in a property's property, this parameter represents that information</param>
        public ObjProperty(PropertyInfo property, object[] propertyIndex, ObjProperty nested)
        {
            this.property      = property;
            this.nested        = nested;
            this.propertyIndex = propertyIndex;

            if (property != null)
            {
                object[] attr = property.GetCustomAttributes(typeof(EditStrAttribute), true);

                if (attr != null && attr.Length > 0)
                {
                    editType = ((EditStrAttribute)attr[0]).EditType;
                }
            }
        }
Esempio n. 2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="T:ObjProperty"/> class.
		/// </summary>
		/// <param name="property">The propertyInfo object that will reflect on objects later on to display information with</param>
		/// <param name="propertyIndex">An array of index parameters if the property parameter represents an indexex property</param>
		/// <param name="nested">If the information required resides in a property's property, this parameter represents that information</param>
		public ObjProperty(PropertyInfo property,object[] propertyIndex, ObjProperty nested)
		{
			this.property=property;
			this.nested=nested;
			this.propertyIndex=propertyIndex;

			if(property!=null)
			{
				object[] attr = property.GetCustomAttributes(typeof(EditStrAttribute),true);

				if(attr!=null && attr.Length>0)
				{
					editType = ((EditStrAttribute)attr[0]).EditType;
				}
			}
		}
Esempio n. 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:ObjProperty"/> class.
 /// </summary>
 /// <param name="property">The propertyInfo object that will reflect on objects later on to display information with</param>
 /// <param name="nested">If the information required resides in a property's property, this parameter represents that information</param>
 public ObjProperty(PropertyInfo property, ObjProperty nested)
     :
     this(property, null, nested)
 {
 }
Esempio n. 4
0
		/// <summary>
		/// Initializes a new instance of the <see cref="T:ObjProperty"/> class.
		/// </summary>
		/// <param name="property">The propertyInfo object that will reflect on objects later on to display information with</param>
		/// <param name="nested">If the information required resides in a property's property, this parameter represents that information</param>
		public ObjProperty(PropertyInfo property, ObjProperty nested):this(property,null,nested)
		{
		}
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CustomListColumn"/> class.
 /// </summary>
 /// <param name="title">Column title</param>
 /// <param name="property">PropertyInfo that will reflect on the objects contained in the list</param>
 public CustomListColumn(string title, System.Reflection.PropertyInfo property)
 {
     this.title       = title;
     this.colProperty = new ObjProperty(property);
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="T:CustomListColumn"/> class.
 /// </summary>
 /// <param name="title">Column title</param>
 /// <param name="property">ObjProperty that will reflect on the objects contained in the list</param>
 public CustomListColumn(string title, ObjProperty property)
 {
     this.title       = title;
     this.colProperty = property;
 }
Esempio n. 7
0
		/// <summary>
		/// Initializes a new instance of the <see cref="T:CustomListColumn"/> class.
		/// </summary>
		/// <param name="title">Column title</param>
		/// <param name="property">PropertyInfo that will reflect on the objects contained in the list</param>
		public CustomListColumn(string title, System.Reflection.PropertyInfo property)
		{
			this.title=title;
			this.colProperty = new ObjProperty(property);
		}
Esempio n. 8
0
		/// <summary>
		/// Initializes a new instance of the <see cref="T:CustomListColumn"/> class.
		/// </summary>
		/// <param name="title">Column title</param>
		/// <param name="property">ObjProperty that will reflect on the objects contained in the list</param>
		public CustomListColumn(string title, ObjProperty property)
		{
			this.title=title;
			this.colProperty=property;
		}