public Form1()
        {
            InitializeComponent();
            m_TwainManager = new TwainManager(m_StrProductKey);
            m_ImageCore    = new ImageCore();
            dsViewer1.Bind(m_ImageCore);
            this.txtboxServer.Text       = m_strServerName;
            this.txtboxPort.Text         = m_strPort;
            this.txtboxActionPage.Text   = m_strActionPage;
            this.txtboxFileName.Text     = "DNT_Image";
            this.rdbtnJPEG.Checked       = true;
            this.chkboxMultiPage.Enabled = false;

            int lngNum;

            m_TwainManager.OpenSourceManager();
            for (lngNum = 0; lngNum < m_TwainManager.SourceCount; lngNum++)
            {
                cmbSource.Items.Add(m_TwainManager.SourceNameItems(Convert.ToInt16(lngNum))); // display the available imaging devices
            }
            if (lngNum > 0)
            {
                cmbSource.SelectedIndex = 0;
            }
        }