Skip to content

Instantly share code, notes, and snippets.

@follesoe
Created April 22, 2011 00:15
Show Gist options
  • Save follesoe/935765 to your computer and use it in GitHub Desktop.
Save follesoe/935765 to your computer and use it in GitHub Desktop.
[Checkbox]
public bool TestBool
{
get { return _testBool; }
set
{
_testBool = value;
_testBool2 = !value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs("TestBool"));
PropertyChanged(this, new PropertyChangedEventArgs("TestBool2"));
}
}
}
[Checkbox]
public bool TestBool2
{
get { return _testBool2; }
set
{
_testBool2 = value;
_testBool = !value;
if (PropertyChanged != null)
{
PropertyChanged(this, new PropertyChangedEventArgs("TestBool"));
PropertyChanged(this, new PropertyChangedEventArgs("TestBool2"));
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment