private void tlbMenu_NewClick()
        {
            try
            {
                if (IdCompany == 0)
                {
                    XtraMessageBox.Show("Select a company.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }

                if (IdClient == 0)
                {
                    XtraMessageBox.Show("Select client.", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
                frmRegStyleEdit objRegStyle = new frmRegStyleEdit();
                objRegStyle.lstStyle      = mLista;
                objRegStyle.pOperacion    = frmRegStyleEdit.Operacion.Nuevo;
                objRegStyle.IdClient      = IdClient;
                objRegStyle.IdStyle       = 0;
                objRegStyle.StartPosition = FormStartPosition.CenterParent;
                objRegStyle.ShowDialog();
                Cargar();
            }
            catch (Exception ex)
            {
                XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
        public void InicializarModificar()
        {
            if (gvStyle.RowCount > 0)
            {
                StyleBE objStyle = new StyleBE();
                objStyle.IdCompany = int.Parse(gvStyle.GetFocusedRowCellValue("IdCompany").ToString());
                objStyle.IdClient  = int.Parse(gvStyle.GetFocusedRowCellValue("IdClient").ToString());
                objStyle.IdStyle   = int.Parse(gvStyle.GetFocusedRowCellValue("IdStyle").ToString());

                frmRegStyleEdit objRegStyleEdit = new frmRegStyleEdit();
                objRegStyleEdit.pOperacion = frmRegStyleEdit.Operacion.Modificar;


                objRegStyleEdit.IdClient      = objStyle.IdClient;
                objRegStyleEdit.IdStyle       = objStyle.IdStyle;
                objRegStyleEdit.pStyleBE      = objStyle;
                objRegStyleEdit.StartPosition = FormStartPosition.CenterParent;
                objRegStyleEdit.ShowDialog();

                Cargar();
            }
            else
            {
                MessageBox.Show("Edist");
            }
        }