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; } }
public ControllerStateRule(IControllerStateRule controllerStateRule) : base(controllerStateRule) { ControllerType = controllerStateRule.ControllerType; ControllerState = controllerStateRule.ControllerState; }
public ControllerStateRule(IControllerStateRule controllerStateRule): base(controllerStateRule){ ControllerType = controllerStateRule.ControllerType; ControllerState=controllerStateRule.ControllerState; }
public ShowInAnalysisPermission(IControllerStateRule logicRule) : base(OperationName, logicRule) { }
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) { }
public ControllerStateRule(IControllerStateRule controllerStateRule) : base(controllerStateRule) { }