Exemple #1
0
		private void setupToolStripMenuItem_Click(object sender,EventArgs e) {
			if(!Security.IsAuthorized(Permissions.Setup)) {
				return;
			}
			FormReportSetup formRS = new FormReportSetup(0,false); //no need to pass in a usergroupnum.
			if(formRS.ShowDialog()==DialogResult.OK) {
				FillLists();
			}
		}
Exemple #2
0
		private DialogResult userControlSecurityTabs_ReportPermissionChecked(object sender,SecurityEventArgs e) {
			GroupPermission perm = e.Perm;
			FormReportSetup FormRS = new FormReportSetup(perm.UserGroupNum,true);
			FormRS.ShowDialog();
			if(FormRS.DialogResult==DialogResult.Cancel) {
				return FormRS.DialogResult;
			}
			if(!FormRS.HasReportPerms) {//Only insert base Reports permission if the user actually has any reports allowed
				return FormRS.DialogResult;
			}
			try {
				GroupPermissions.Insert(perm);
			}
			catch(Exception ex) {
				MessageBox.Show(ex.Message);
				return DialogResult.Cancel;
			}
			return FormRS.DialogResult;
		}
Exemple #3
0
        private void setupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormReportSetup formRS = new FormReportSetup();

            formRS.ShowDialog();
        }
		private void setupToolStripMenuItem_Click(object sender,EventArgs e) {
			FormReportSetup formRS = new FormReportSetup();
			formRS.ShowDialog();
		}