示例#1
0
 /// <summary>
 /// Initializes a new instance of the ListAttribute class.
 /// </summary>
 /// <param name="listName">The name of the List to use for this property</param>
 /// <param name="parentKey">The key of the parent for this List</param>
 /// <param name="textField">Text Field.</param>
 /// <param name="valueField">Value Field.</param>
 public ListAttribute(string listName, string parentKey, ListBoundField valueField, ListBoundField textField)
 {
     _ListName   = listName;
     _ParentKey  = parentKey;
     _TextField  = textField;
     _ValueField = valueField;
 }
 public ListAttribute(string listName, string parentKey, ListBoundField valueField, ListBoundField textField)
 {
     _ListName = listName;
     _ParentKey = parentKey;
     _TextField = textField;
     _ValueField = valueField;
 }
示例#3
0
 /// <Summary>Constructs a DNNListEditControl</Summary>
 public DNNListEditControl()
 {
     this._ListName   = Null.NullString;
     this._ParentKey  = Null.NullString;
     this._TextField  = ListBoundField.Text;
     this._ValueField = ListBoundField.Value;
 }
示例#4
0
 /// <Summary>
 /// OnAttributesChanged runs when the CustomAttributes property has changed.
 /// </Summary>
 protected override void OnAttributesChanged()
 {
     //Get the List settings out of the "Attributes"
     if (CustomAttributes != null)
     {
         foreach (Attribute attribute in CustomAttributes)
         {
             if (attribute is ListAttribute)
             {
                 ListAttribute listAtt = (ListAttribute)attribute;
                 ListName   = listAtt.ListName;
                 ParentKey  = listAtt.ParentKey;
                 TextField  = listAtt.TextField;
                 ValueField = listAtt.ValueField;
                 break;
             }
         }
     }
 }
 /// <Summary>
 /// OnAttributesChanged runs when the CustomAttributes property has changed.
 /// </Summary>
 protected override void OnAttributesChanged()
 {
     //Get the List settings out of the "Attributes"
     if (CustomAttributes != null)
     {
         foreach (Attribute attribute in CustomAttributes)
         {
             if (attribute is ListAttribute)
             {
                 ListAttribute listAtt = (ListAttribute)attribute;
                 ListName = listAtt.ListName;
                 ParentKey = listAtt.ParentKey;
                 TextField = listAtt.TextField;
                 ValueField = listAtt.ValueField;
                 break;
             }
         }
     }
 }
 /// <Summary>Constructs a DNNListEditControl</Summary>
 public DNNListEditControl()
 {
     this._ListName = Null.NullString;
     this._ParentKey = Null.NullString;
     this._TextField = ListBoundField.Text;
     this._ValueField = ListBoundField.Value;
 }