private void UpdateDataObject()
 {
     Microsoft.Exchange.MessagingPolicies.Rules.Tasks.Rule rule = SetSupervisionPolicy.ConvertFromRuleADObjectToPresentationObject(this.DataObject);
     this.UpdatePresentationObject(ref rule);
     SetSupervisionPolicy.UpdateRuleADObjectFromPresentationObject(this.DataObject, rule);
 }
 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);
 }