示例#1
0
 PopulateWithObjectsAndText
 (
     params Object [] objectTextPairs
 )
 {
     ListControlPlus.PopulateWithObjectsAndText(this, objectTextPairs);
 }
示例#2
0
 PopulateWithEnumValues
 (
     Type enumType,
     Boolean formatForUser
 )
 {
     ListControlPlus.PopulateWithEnumValues(this, enumType, formatForUser);
 }
示例#3
0
 PopulateWithEnumValues
 (
     Type oEnumType,
     Boolean bFormatForUser
 )
 {
     ListControlPlus.PopulateWithEnumValues(this, oEnumType, bFormatForUser);
 }
示例#4
0
        InitializeListControl
        (
            ListControl oListControl
        )
        {
            Debug.Assert(oListControl != null);

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

                                                       );

            oListControl.SelectedValue = ImageFormat.Jpeg;
        }