private void btnbusqlicencia_Click(object sender, EventArgs e) { Frm_Licencias Licencia = new Frm_Licencias(); Licencia.PaSel = true; Licencia.ShowDialog(); textLicencia.Tag = Licencia.IdLicencia; textLicencia.Text = Licencia.Licencia; }
private void btnLicencias_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (TieneAcceso("008")) { Frm_Licencias Frm = new Frm_Licencias(); Frm.PaSel = false; Frm.ShowDialog(); } else { XtraMessageBox.Show("No Cuentas con acceso a esta Opcion [008]"); } }