Esempio n. 1
0
 private void dgvDetalle_DoubleClick(object sender, EventArgs e)
 {
     if (this.dgvDetalle.CurrentRow == null)
     {
         return;
     }
     if (Util.Cadena(this.dgvDetalle.CurrentRow.Cells["Contenido"].Value).Trim().ToLower() == "hay en caja")
     {
         if (this.ctlConteo == null)
         {
             this.ctlConteo = new CajaConteoPagos()
             {
                 Dock = DockStyle.Fill, MostrarTotal = true
             };
             this.Parent.Controls.Add(this.ctlConteo);
         }
         this.ctlConteo.BringToFront();
         this.Paso = 1;
     }
 }
Esempio n. 2
0
 private void dgvDetalle_DoubleClick(object sender, EventArgs e)
 {
     if (this.dgvDetalle.CurrentRow == null) return;
     if (Util.Cadena(this.dgvDetalle.CurrentRow.Cells["Contenido"].Value).Trim().ToLower() == "hay en caja")
     {
         if (this.ctlConteo == null)
         {
             this.ctlConteo = new CajaConteoPagos() { Dock = DockStyle.Fill, MostrarTotal = true };
             this.Parent.Controls.Add(this.ctlConteo);
         }
         this.ctlConteo.BringToFront();
         this.Paso = 1;
     }
 }