(latest version, c#, VS2010)
Am I using this component backwards?
I am playing with the "Document Viewer" sample.
I want to load 1-n images from a directory. Then when the user clicks on a thumbnail I want to display the image in the GDViewer.
Code: Select all
using (var openFileDialog = new OpenFileDialog())
{
openFileDialog.Multiselect = true;
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
foreach (var s in openFileDialog.FileNames)
ThumbnailEx1.AddItemFromFile(s);
}
}
Code: Select all
private void ThumbnailEx1_ItemSelectionChanged(int Idx, bool Selected)
{
var s = ThumbnailEx1.GetItemFileSource(Idx);
}
How do I get the thumbnails source to the Viewer?
-Markus