private void btnContinuar_Click(object sender, EventArgs e)
 {
     try
     {
         ValidarDatos();
         FrmZPPG01Captura       zppg01 = new FrmZPPG01Captura();
         string                 cadena = "WHERE (WERKS = '" + txtbxCentro.Text + "')";
         CLSCatCentroCollection centro = new CLSCatCentroBAL().MostrarCatCentroBAL(cadena);
         IEnumerator            lista  = centro.GetEnumerator();
         while (lista.MoveNext())
         {
             CLSCatCentro centroM = (CLSCatCentro)lista.Current;
             cadena = centroM.DescCentro.ToString();
         }
         if (MessageBox.Show("Estas seguro de entrar con centro " + cadena, "AVISO", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
         {
             zppg01.CodCentro = txtbxCentro.Text;
             zppg01.DesCentro = cadena;
             string bascula = txtbxBascula.Text.ToUpper();
             if (bascula != "MANUAL")
             {
                 zppg01.Bascula       = true;
                 zppg01.CodBascula    = codBascula;
                 zppg01.ModeloBascula = txtbxBascula.Text.ToUpper();
             }
             else
             {
                 zppg01.Bascula = false;
             }
             zppg01.PuertoFatom  = txtbxPuertoSrl.Text;
             zppg01.SettingFatom = txtbxSettings.Text;
             zppg01.IniciarForma();
             this.Hide();
             zppg01.ShowDialog();
             zppg01.CerrarPuerto();
         }
     }
     catch (Exception ex)
     {
         base.MostrarError(ex.Message);
     }
 }