Pregunta

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?

¿Fue útil?

Solución

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.

Otros consejos

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'

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top