private void InicializarReportesFacturas() { if (!ContextControls.ContainsKey("ReporteFacturas")) { ReporteFacturas pnlReportesFacturas = new ReporteFacturas(); pnlReportesFacturas.Dock = DockStyle.Fill; DevExpress.XtraTab.XtraTabPage tabItem = new DevExpress.XtraTab.XtraTabPage(); tabItem.Controls.Add(pnlReportesFacturas); tabItem.Text = "Reporte Facturas"; xtraTabControl.TabPages.Add(tabItem); xtraTabControl.SelectedTabPage = tabItem; ContextControls.Add("ReporteFacturas", pnlReportesFacturas); } }