private void barButtonItem4_ItemClick(object sender, ItemClickEventArgs e) { var xtraForm = FindControl("ProyectoListForm") as XtraForm; if (xtraForm != null) { xtraForm.Activate(); } else { try { SplashScreenManager.ShowForm(MdiParent, typeof(WaitForm1), true, true); } catch (Exception) { SplashScreenManager.CloseForm(); SplashScreenManager.ShowForm(MdiParent, typeof(WaitForm1), true, true); } ProyectoListForm form = new ProyectoListForm { MdiParent = this }; form.Show(); } Reportes_ribbonPageGroup.Enabled = true; }
public void MuestraProyectos() { var form = FindControl("ProyectoListForm") as XtraForm; if (form != null) { form.Activate(); } else { ProyectoListForm proyectoListForm = new ProyectoListForm { MdiParent = this }; proyectoListForm.Show(); Reportes_ribbonPageGroup.Enabled = true; //ribbonControl.SelectedPage = Hhhhhh; } }