public frmDigitalizacao_2(frmPrincipal form)
        {
            InitializeComponent();
            formPrincipal = form;
            lblIdCliente.Text = formPrincipal.lblIdCliente.Text;
            lblNomeCliente.Text = formPrincipal.lblCliente.Text;
            TwainGlobalSettings tgs = new TwainGlobalSettings();

            tgs.Register("Afranio de Carvalho Freire Filho", "*****@*****.**", "MKhP0tHkOo03FOTYCC/vNUjr9wmoknf4+479sZoIPV5JIEuUkpfv1Ou8Vz+jblAxAzzqG+s8za1oMuTn9Pql6QcSHb92gzJNPu5joE4URLT4BfBw/R1M6WpwfuTtsPDqfhVfX2O2btRsKlDYK77WfU6+bkImymve8Xm7KHPeGtyw");

            _deviceManager = new DeviceManager(this);

            openDeviceManager();
        }
        public Clientes(string pNomeCliente, string pQtdIndexados, string pQtdAIndexar, int pIdTipoCliente, System.Drawing.Point pLocal, int pIndice, frmPrincipal form)
        {
            formPrincipal = form;
            imgTipoCliente = new PictureBox();
            imgIndexados = new PictureBox();
            imgAindexar = new PictureBox();
            nomeCliente = new Label();
            qtdIndexados = new Label();
            qtdAIndexar = new Label();
            btnSelecionarCliente = new Button();

            this.Size = new System.Drawing.Size(173, 277);
            this.Location = pLocal;
            this.Name = "this" + pIndice;
            this.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.Visible = true;

            /*this.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(imgAindexar)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(imgIndexados)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(imgTipoCliente)).BeginInit();
            this.SuspendLayout();*/

            imgTipoCliente.Image = Image.FromFile("..\\..\\images\\Pantheon-icon.png");
            imgTipoCliente.BorderStyle = BorderStyle.Fixed3D;
            imgTipoCliente.Name = "imgTipoCliente" + pIndice;
            imgTipoCliente.Location = new System.Drawing.Point(50, 20);
            imgTipoCliente.SizeMode = PictureBoxSizeMode.StretchImage;
            imgTipoCliente.Size = new System.Drawing.Size(83, 63);

            imgIndexados.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            imgIndexados.Location = new System.Drawing.Point(35, 116);
            imgIndexados.Size = new System.Drawing.Size(35, 38);
            imgIndexados.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            imgIndexados.Name = "imgIndexados" + pIndice;
            imgIndexados.Image = Image.FromFile("..\\..\\images\\ico_papeis.jpg");

            imgAindexar.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
            imgAindexar.Image = Image.FromFile("..\\..\\images\\setas_icom.jpg");
            imgAindexar.Location = new System.Drawing.Point(35, 160);
            imgAindexar.Name = "imgAindexar" + pIndice;
            imgAindexar.Size = new System.Drawing.Size(35, 38);
            imgAindexar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;

            nomeCliente.AutoSize = true;
            nomeCliente.Font = new System.Drawing.Font("Microsoft Sans Serif", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            nomeCliente.Location = new System.Drawing.Point(30, 85);
            nomeCliente.TextAlign = ContentAlignment.MiddleCenter;
            nomeCliente.Name = "nomeCliente" + pIndice;
            nomeCliente.Size = new System.Drawing.Size(138, 20);
            nomeCliente.Text = pNomeCliente;

            qtdIndexados.AutoSize = true;
            qtdIndexados.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            qtdIndexados.Location = new System.Drawing.Point(86, 125);
            qtdIndexados.Name = "qtdIndexados" + pIndice;
            qtdIndexados.Size = new System.Drawing.Size(39, 20);
            qtdIndexados.Text = pQtdIndexados;

            qtdAIndexar.AutoSize = true;
            qtdAIndexar.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            qtdAIndexar.Location = new System.Drawing.Point(88, 172);
            qtdAIndexar.Name = "qtdAIndexar" + pIndice;
            qtdAIndexar.Size = new System.Drawing.Size(19, 20);
            qtdAIndexar.Text = pQtdAIndexar;

            btnSelecionarCliente.Location = new System.Drawing.Point(6, 248);
            btnSelecionarCliente.Name = "btnSelecionarCliente" + pIndice;
            btnSelecionarCliente.Size = new System.Drawing.Size(161, 23);
            btnSelecionarCliente.TabIndex = 1;
            btnSelecionarCliente.Text = "Selecionar Cliente";
            btnSelecionarCliente.UseVisualStyleBackColor = true;
            btnSelecionarCliente.Click += new System.EventHandler(this.bntSelecionarCliente_Click);

            this.Controls.Add(this.imgAindexar);
            this.Controls.Add(this.imgIndexados);
            this.Controls.Add(this.imgTipoCliente);
            this.Controls.Add(this.nomeCliente);
            this.Controls.Add(this.qtdIndexados);
            this.Controls.Add(this.qtdAIndexar);
            this.Controls.Add(this.btnSelecionarCliente);
        }