private void tlbMenu_DeleteClick()
        {
            try
            {
                Cursor = Cursors.WaitCursor;
                if (XtraMessageBox.Show("Be sure to delete the record?", this.Text, MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
                {
                    int intIdInvoice = int.Parse(gvInvoice.GetFocusedRowCellValue("IdInvoice").ToString());
                    int intIdStatus  = int.Parse(gvInvoice.GetFocusedRowCellValue("IdStatus").ToString());

                    if (intIdStatus == Parametros.intIVNDeleted)
                    {
                        XtraMessageBox.Show("It can not be canceled.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    }
                    else
                    {
                        InvoiceBL objBL_Invoice = new InvoiceBL();
                        objBL_Invoice.ActualizaSituacion(intIdInvoice, Parametros.intIVNDeleted);
                        XtraMessageBox.Show("The invoice was canceled correctly.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                        Cargar();
                    }
                }

                Cursor = Cursors.Default;
            }
            catch (Exception ex)
            {
                Cursor = Cursors.Default;
                XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }