Utility methods for working with list controls.
Esempio n. 1
0
 PopulateWithObjectsAndText
 (
     params Object [] objectTextPairs
 )
 {
     ListControlUtil.PopulateWithObjectsAndText(this, objectTextPairs);
 }
Esempio n. 2
0
 PopulateWithEnumValues
 (
     Type enumType,
     Boolean formatForUser
 )
 {
     ListControlUtil.PopulateWithEnumValues(this, enumType, formatForUser);
 }
        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;
        }