コード例 #1
0
        private DialogResult userControlSecurityTabs_ReportPermissionChecked(object sender, SecurityEventArgs e)
        {
            GroupPermission        perm    = e.Perm;
            FormCentralReportSetup FormCRS = new FormCentralReportSetup(perm.UserGroupNum, true);

            FormCRS.ShowDialog();
            if (FormCRS.DialogResult == DialogResult.Cancel)
            {
                return(FormCRS.DialogResult);
            }
            if (!FormCRS.HasReportPerms)             //Only insert base Reports permission if the user actually has any reports allowed
            {
                return(FormCRS.DialogResult);
            }
            try {
                GroupPermissions.Insert(perm);
            }
            catch (Exception ex) {
                MessageBox.Show(ex.Message);
                return(DialogResult.Cancel);
            }
            return(FormCRS.DialogResult);
        }
コード例 #2
0
        private void menuItemReportSetup_Click(object sender, EventArgs e)
        {
            FormCentralReportSetup FormCRS = new FormCentralReportSetup(Security.CurUser.UserNum, true);

            FormCRS.ShowDialog();
        }