예제 #1
0
 void BackImageLayoutProvidePropertyValueList(object sender, PropertyValueListEventArgs e)
 {
     // This list is used for auto-complete while typing the property value
     // as well as for drop-down Combo-Box
     e.ValueList   = new List <string>(_Values.Values);
     e.IsListValid = true;
 }
 // Provide list of all available property values in text representation, if applicable
 private void advPropertyGrid1_ProvidePropertyValueList(object sender, PropertyValueListEventArgs e)
 {
     if (e.PropertyDescriptor.PropertyType == typeof(bool))
     {
         // Text representation of all available property values
         e.ValueList = new List <string>(new string[] { Text_Yes, Text_No });
         // Indicate that a list was provided
         e.IsListValid = true;
     }
 }