private void btnDeleteDS_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.dgvCart.SelectedRows.Count == 0)
                {
                    throw new ArgumentException("Debe seleccionar una fila para eliminar.");
                }

                DialogResult    result          = new DialogResult();
                FormInformation formInformation = new FormInformation("¿ESTAS SEGURO DE ELIMINAR EL REGISTRO?");
                result = formInformation.ShowDialog();
                if (result == DialogResult.OK)
                {
                    CartDetailSaleItem detailProduct = this.dgvCart.CurrentRow.DataBoundItem as CartDetailSaleItem;
                    int index = this.dgvCart.CurrentRow.Index;
                    this.cartDetailSale.DeleteCartItem(index, detailProduct.idDetailProduct);
                    this.sourceList.ResetBindings();
                    this.UpdateTotalAndSimilars(Convert.ToDecimal(this.cartDetailSale.total));

                    FormSuccess.ConfirmationForm("ELIMINADO");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
 public FormModifySaleCount(string message, CartDetailSaleItem curItem)
 {
     InitializeComponent();
     this.lblMessage.Text   = message;
     this.currentItem       = curItem;
     this.value             = currentItem.count;
     this.txtSaleCount.Text = this.value.ToString();
     this.txtSaleCount.Focus();
 }