Created
January 25, 2013 14:54
-
-
Save anonymous/4635005 to your computer and use it in GitHub Desktop.
simple stupid code :/
This file contains 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
static IList<ViewModel> registeredEntities; | |
protected static IList<ViewModel> RegisteredViewModels | |
{ | |
get | |
{ | |
return registeredEntities; | |
} | |
set | |
{ | |
registeredEntities = value; | |
} | |
} | |
public ViewModel() | |
{ | |
if (RegisteredViewModels == null) | |
RegisteredViewModels = new List<ViewModel>(); | |
registeredEntities.Add(this); | |
//... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment