Utility methods for working with list controls.
Ejemplo n.º 1
0
 PopulateWithObjectsAndText
 (
     params Object [] objectTextPairs
 )
 {
     ListControlUtil.PopulateWithObjectsAndText(this, objectTextPairs);
 }
Ejemplo n.º 2
0
 PopulateWithEnumValues
 (
     Type enumType,
     Boolean formatForUser
 )
 {
     ListControlUtil.PopulateWithEnumValues(this, enumType, formatForUser);
 }
Ejemplo n.º 3
0
        InitializeListControl
        (
            ListControl listControl
        )
        {
            Debug.Assert(listControl != null);

            ListControlUtil.PopulateWithObjectsAndText(listControl,
                                                       new Object [] {
                ImageFormat.Bmp, "BMP (.bmp)",
                ImageFormat.Gif, "GIF (.gif)",
                ImageFormat.Jpeg, "JPEG (.jpg)",
                ImageFormat.Png, "PNG (.png)",
                ImageFormat.Tiff, "TIFF (.tif)"
            }

                                                       );

            listControl.SelectedValue = ImageFormat.Jpeg;
        }