Esempio n. 1
0
 private void btnrptProjection_Click(object sender, EventArgs e)
 {
     if (System.Windows.Forms.Application.OpenForms["frmRptProjection"] as frmRptProjection == null)
     {
         frmRptProjection objfrm = new frmRptProjection();
         objfrm.Show();
         objfrm.MdiParent = this.MdiParent;
     }
     else
     {
         frmRptProjection objfrm = (frmRptProjection)Application.OpenForms["frmRptProjection"];
         objfrm.Focus();
     }
 }
Esempio n. 2
0
        private void btnrptProjection_Click(object sender, EventArgs e)
        {
            if (Utility.gblnAccessControl)
            {
                if (!Utility.gblnChildPrivileges(strComID, Utility.gstrUserName, 181))
                {
                    MessageBox.Show("You have no Permission to Access", "Privileges", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;
                }
            }

            if (System.Windows.Forms.Application.OpenForms["frmRptProjection"] as frmRptProjection == null)
            {
                frmRptProjection objfrm = new frmRptProjection();
                objfrm.Show();
                objfrm.MdiParent = this.MdiParent;
            }
            else
            {
                frmRptProjection objfrm = (frmRptProjection)Application.OpenForms["frmRptProjection"];
                objfrm.Focus();
            }
        }