protected void ChangeState(IControllerStateRule rule) {
     Controller controller = Frame.GetController(rule.ControllerType);
     if (rule.ControllerState == ControllerState.Register) {
         if (!controller.Active) {
             Frame.RegisterController(controller);
         }
     }
     else {
         controller.Active[ActiveObjectTypeHasControllerRules] = rule.ControllerState == ControllerState.Enabled;
     }
 }
Beispiel #2
0
        protected void ChangeState(IControllerStateRule rule)
        {
            Controller controller = Frame.GetController(rule.ControllerType);

            if (rule.ControllerState == ControllerState.Register)
            {
                if (!controller.Active)
                {
                    Frame.RegisterController(controller);
                }
            }
            else
            {
                controller.Active[ActiveObjectTypeHasControllerRules] = rule.ControllerState == ControllerState.Enabled;
            }
        }
Beispiel #3
0
 public ControllerStateRule(IControllerStateRule controllerStateRule) : base(controllerStateRule)
 {
     ControllerType  = controllerStateRule.ControllerType;
     ControllerState = controllerStateRule.ControllerState;
 }
 public ControllerStateRule(IControllerStateRule controllerStateRule): base(controllerStateRule){
     ControllerType = controllerStateRule.ControllerType;    
     ControllerState=controllerStateRule.ControllerState;    
 }
Beispiel #5
0
 public ShowInAnalysisPermission(IControllerStateRule logicRule)
     : base(OperationName, logicRule)
 {
 }
Beispiel #6
0
 IEnumerable <string> GetAssemblies(IControllerStateRule controllerStateRule)
 {
     return(Application.Modules.Where(@base => new Regex(controllerStateRule.Module).IsMatch(@base.GetType().FullName + "")).
            Select(@base => @base.GetType().Assembly.FullName));
 }
 IEnumerable<string> GetAssemblies(IControllerStateRule controllerStateRule) {
     return Application.Modules.Where(@base => new Regex(controllerStateRule.Module).IsMatch(@base.GetType().FullName + "")).
         Select(@base => @base.GetType().Assembly.FullName);
 }
 public ControllerStateRulePermission(IControllerStateRule logicRule)
     : base(OperationName, logicRule) {
     ControllerState = logicRule.ControllerState;
     ControllerType = logicRule.ControllerType;
 }
        public PivotSettingsPermission(IControllerStateRule logicRule)
            : base(OperationName, logicRule) {

        }
Beispiel #10
0
 public PivotSettingsPermission(IControllerStateRule logicRule)
     : base(OperationName, logicRule)
 {
 }
 public ShowInAnalysisPermission(IControllerStateRule logicRule)
     : base(OperationName, logicRule) {
 }
Beispiel #12
0
 public ControllerStateRule(IControllerStateRule controllerStateRule) : base(controllerStateRule) {
 }
Beispiel #13
0
 public ControllerStateRulePermission(IControllerStateRule logicRule)
     : base(OperationName, logicRule)
 {
     ControllerState = logicRule.ControllerState;
     ControllerType  = logicRule.ControllerType;
 }