Created
April 22, 2011 00:15
-
-
Save follesoe/935765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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