private void barButtonItem10_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     frmEmpresa f = new frmEmpresa();
     f.MdiParent = this;
     f.Show();
     //  f.WindowState = FormWindowState.Maximized;
 }
 private void barButtonItem10_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     if (permitir("frmEmpresa"))
     {
         frmEmpresa f = new frmEmpresa();
         f.MdiParent = this;
         f.Show();
     }
     else
     {
         sinPermiso();
     }
     //  f.WindowState = FormWindowState.Maximized;
 }