Exemplo n.º 1
0
 protected override void EditModel()
 {
     SecuritySystem.ReloadPermissions();
     typeof(DevExpress.ExpressApp.Win.SystemModule.EditModelController).Invoke(this, "UpdateActivity");
     if (SecuritySystem.Instance is IRequestSecurity)
     {
         SecuritySystem.Demand(new ModelOperationPermissionRequest());
     }
     else
     {
         SecuritySystem.Demand(new EditModelPermission(ModelAccessModifier.Allow));
     }
     EditModelCore();
 }
Exemplo n.º 2
0
 void ExportAction_Executing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     SecuritySystem.Demand(new ExportPermissionRequest());
 }