Ejemplo n.º 1
0
 private void UpdateDataObject()
 {
     Microsoft.Exchange.MessagingPolicies.Rules.Tasks.Rule rule = SetSupervisionPolicy.ConvertFromRuleADObjectToPresentationObject(this.DataObject);
     this.UpdatePresentationObject(ref rule);
     SetSupervisionPolicy.UpdateRuleADObjectFromPresentationObject(this.DataObject, rule);
 }
Ejemplo n.º 2
0
 private void UpdateRuleState(SupervisionTransportRule supervisionTransportRule)
 {
     Microsoft.Exchange.MessagingPolicies.Rules.Tasks.Rule rule = SetSupervisionPolicy.ConvertFromRuleADObjectToPresentationObject(supervisionTransportRule);
     rule.State = (this.BadWordsPolicyEnabled ? RuleState.Enabled : RuleState.Disabled);
     SetSupervisionPolicy.UpdateRuleADObjectFromPresentationObject(supervisionTransportRule, rule);
 }