Skip to content

Instantly share code, notes, and snippets.

@jasmarc
Created July 31, 2010 17:09
Show Gist options
  • Save jasmarc/502383 to your computer and use it in GitHub Desktop.
Save jasmarc/502383 to your computer and use it in GitHub Desktop.
using Put.Usings.Here;
namespace Your.Namespace.Here
{
public class CommonPolicyDeclarationWrapper : BaseWrapper
{
private CommonPolicyDeclaration _commonPolicyDeclaration;
internal CommonPolicyDeclarationWrapper(CommonPolicyDeclaration commonPolicyDeclaration)
{
_commonPolicyDeclaration = commonPolicyDeclaration;
}
public string Description
{
get { return _commonPolicyDeclaration.Description; }
set
{
if (ValueChanged(_commonPolicyDeclaration.Description, value))
{
_commonPolicyDeclaration.Description = value;
NotifyPropertyChanged("Description");
}
}
}
public int StatusCode
{
get { return _commonPolicyDeclaration.StatusCode; }
set
{
if (ValueChanged(_commonPolicyDeclaration.StatusCode, value))
{
_commonPolicyDeclaration.StatusCode = value;
NotifyPropertyChanged("StatusCode");
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment