/// <summary>Implements IDomainModelEnablesRulesAfterDeserialization.EnableRulesAfterDeserialization</summary>
 protected void EnableRulesAfterDeserialization(Microsoft.VisualStudio.Modeling.Store store)
 {
     Microsoft.VisualStudio.Modeling.RuleManager ruleManager = store.RuleManager;
     Type[] disabledRuleTypes = DiagramDisplayDomainModel.CustomDomainModelTypes;
     for (int i = 0; i < 2; ++i)
     {
         ruleManager.EnableRule(disabledRuleTypes[i]);
     }
 }
Example #2
0
 /// <summary>Implements IDomainModelEnablesRulesAfterDeserialization.EnableRulesAfterDeserialization</summary>
 protected void EnableRulesAfterDeserialization(Microsoft.VisualStudio.Modeling.Store store)
 {
     Microsoft.VisualStudio.Modeling.RuleManager ruleManager = store.RuleManager;
     Type[] disabledRuleTypes = ORMAbstractionToBarkerERBridgeDomainModel.CustomDomainModelTypes;
     for (int i = 0; i < 4; ++i)
     {
         ruleManager.EnableRule(disabledRuleTypes[i]);
     }
 }
Example #3
0
 /// <summary>Implements IDomainModelEnablesRulesAfterDeserialization.EnableRulesAfterDeserialization</summary>
 protected void EnableRulesAfterDeserialization(Microsoft.VisualStudio.Modeling.Store store)
 {
     BarkerERShapeDomainModel.EnableDiagramRules(store);
     Microsoft.VisualStudio.Modeling.RuleManager ruleManager = store.RuleManager;
     Type[] disabledRuleTypes = BarkerERShapeDomainModel.InitiallyDisabledRuleTypes;
     for (int i = 0; i < 5; ++i)
     {
         ruleManager.EnableRule(disabledRuleTypes[i]);
     }
 }