1

I am trying to use a method that is described like this:

public Device GetDevice(string productName)

The productName is the name of the device as it appears in the Select Source dialog.

What is the Select Source dialog that's being referred to?

Community
  • 1
  • 1
Stylzs05
  • 441
  • 2
  • 7
  • 18

2 Answers2

2

As this link mentions (look for the "Showing the “Select Source” dialog" heading), this is a dialog that allows users to select an ISIS device. It's part of the DotImage framework, called with ShowSelectSource and is used like this:

IsisDevice dev = null;
if (this.acquisition.ShowSelectSource(this)) dev = this.acquisition.Devices.Default;

I would guess that this works similarly to a FolderBrowserDialog. The user selects the device of his choosing and you can then use his selection to retrieve the Device itself with GetDevice.

Lilienthal
  • 3,939
  • 9
  • 44
  • 80
  • Thank you. Sorry for not being specific enough. I just got thrown on this project with no direction. First time working with actual hardware. – Stylzs05 Jun 04 '12 at 16:11
0

I had to use Google to find out which library you are using.

Anyway: open the atalasoft documentation, once there, click search, and search for 'select AND source AND dialog'. Click the secondd hit '2: Getting Started with DotTwain' and read 'Showing the "Select Source" dialog'

huysentruitw
  • 25,048
  • 8
  • 76
  • 120