protected override void InitializeProperties() { lock (syncLock) { if (this._runtimeInitialized) { return; } Activity ownerActivity = base.ParentDependencyObject as Activity; CompositeActivity declaringActivity = Helpers.GetDeclaringActivity(ownerActivity); if (declaringActivity == null) { declaringActivity = Helpers.GetRootActivity(ownerActivity) as CompositeActivity; } RuleDefinitions rules = ConditionHelper.Load_Rules_RT(declaringActivity); if (rules != null) { rules.OnRuntimeInitialized(); } base.InitializeProperties(); _runtimeInitialized = true; } }
protected override void InitializeProperties() { lock (syncLock) { if (this._runtimeInitialized) { return; } CompositeActivity declaringActivity = null; Activity ownerActivity = base.ParentDependencyObject as Activity; RuleDefinitions definitions = GetRuleDefinitions(ownerActivity, out declaringActivity); definitions.OnRuntimeInitialized(); this.declaringActivityId = declaringActivity.QualifiedName; base.InitializeProperties(); _runtimeInitialized = true; } }
protected override void InitializeProperties() { lock (this.syncLock) { if (!this._runtimeInitialized) { Activity parentDependencyObject = base.ParentDependencyObject as Activity; CompositeActivity declaringActivity = Helpers.GetDeclaringActivity(parentDependencyObject); if (declaringActivity == null) { declaringActivity = Helpers.GetRootActivity(parentDependencyObject) as CompositeActivity; } RuleDefinitions definitions = ConditionHelper.Load_Rules_RT(declaringActivity); if (definitions != null) { definitions.OnRuntimeInitialized(); } base.InitializeProperties(); this._runtimeInitialized = true; } } }