Exemplo n.º 1
0
 PopulateWithObjectsAndText
 (
     params Object [] objectTextPairs
 )
 {
     ListControlPlus.PopulateWithObjectsAndText(this, objectTextPairs);
 }
Exemplo n.º 2
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;
        }