private void OnPictureChooserClicked(object sender, EventArgs e) { var images = new ArtOfReadingImageCollection(); images.LoadIndex(Path.Combine(Assembly.GetEntryAssembly().Location, "ImageGallery/artofreadingindexv3_en.txt")); images.RootImagePath = RootImagePath.Text; var form = new PictureChooser(images, "duck"); Application.Run(form); Result.Text = "Result: " + form.ChosenPath; }
private void OnPictureChooserClicked(object sender, EventArgs e) { ThumbnailViewer.UseWebViewer = _useGeckoVersion.Checked; var images = new ArtOfReadingImageCollection(); images.LoadIndex(Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "ImageGallery/ArtOfReadingIndexV3_en.txt")); images.RootImagePath = RootImagePath.Text; using (var form = new PictureChooser(images, "duck")) { form.ShowDialog(); Result.Text = "Result: " + form.ChosenPath; } }
public void Setup() { _artCollection = new Palaso.UI.WindowsForms.ImageGallery.ArtOfReadingImageCollection(); _artCollection.LoadIndex(IndexPath); }