public void CustomizeAccessibility(ArtifactStateInfo artifactStateInfo){
     var rule = (((ActionStateRule)artifactStateInfo.Rule));
     foreach (ActionBase actionBase in GetActions(rule)){
         actionBase.Enabled[ArtifactStateCustomizationViewController.ActiveObjectTypeHasRules] =
             !artifactStateInfo.Active;
     }
 }
 private void customizeState(ArtifactStateInfo artifactStateInfo){
     var controllerStateRule = (((ControllerStateRule)artifactStateInfo.Rule));
     if (!string.IsNullOrEmpty(controllerStateRule.Module)){
         IEnumerable<string> assemblies = Application.Modules.Where(
             @base => new Regex(controllerStateRule.Module).IsMatch(@base.GetType().FullName)).Select(
             @base => @base.GetType().Assembly.FullName);
         foreach (
             Controller controller in
                 Frame.Controllers.Cast<Controller>().Where(
                     controller => assemblies.Contains(controller.GetType().Assembly.FullName)))
             controller.Active[ArtifactStateCustomizationViewController.ActiveObjectTypeHasRules] =
                 !artifactStateInfo.Active;
     }
     else
         Frame.GetController(controllerStateRule.ControllerType).Active[
             ArtifactStateCustomizationViewController.ActiveObjectTypeHasRules] = !artifactStateInfo.Active;
 }
 public void CustomizeAccessibility(ArtifactStateInfo info){
     customizeState(info);
 }
 public void CustomizeVisibility(ArtifactStateInfo artifactStateInfo){
     customizeState(artifactStateInfo);
 }
Пример #5
0
 public ArtifactStateInfoCustomizingEventArgs(ArtifactStateInfo info, bool cancel)
 {
     ArtifactStateInfo = info;
     Cancel            = cancel;
 }
Пример #6
0
 public ArtifactStateInfoCustomizedEventArgs(ArtifactStateInfo info)
 {
     ArtifactStateInfo = info;
 }
 public ArtifactStateInfoCustomizedEventArgs(ArtifactStateInfo info){
     ArtifactStateInfo = info;
 }