示例#1
0
        private void navBarItem7_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
        {
            bool bAns = false;

            bAns = TargetEntryBL.PowerUserFound();
            if (bAns == true)
            {
                MessageBox.Show("Don't have Permission to View"); return;
            }
            panelControl1.Controls.Clear();
            frmExecutiveAnalysis frmRR = new frmExecutiveAnalysis()
            {
                TopLevel = false, FormBorderStyle = FormBorderStyle.None, Dock = DockStyle.Fill
            };

            panelControl1.Controls.Add(frmRR);
            frmRR.Show();
        }
示例#2
0
        private void btnExecu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            bool bAns = false;

            bAns = TargetEntryBL.PowerUserFound();
            if (bAns == true)
            {
                MessageBox.Show("Don't have Permission to View"); return;
            }
            panelControl1.Controls.Clear();
            frmExecutiveAnalysis frmRR = new frmExecutiveAnalysis()
            {
                TopLevel = false, FormBorderStyle = FormBorderStyle.None, Dock = DockStyle.Fill
            };

            panelControl1.Controls.Add(frmRR);
            frmRR.Show();
            Cursor.Current = Cursors.Default;
        }