public LoginViewModel() { _resolver = ViewModelsResolver.GetInstance(); homePageViewModel = _resolver.GetViewModelInstance(HomeViewModelAlias); registrationPageViewModel = _resolver.GetViewModelInstance(RegistrationViewModelAlias); }
public static ViewModelsResolver GetInstance() { if (instance == null) { lock (_lock) { if (instance == null) { instance = new ViewModelsResolver(); } } } return(instance); }
public HomeViewModel() { _resolver = ViewModelsResolver.GetInstance(); userPageViewModel = _resolver.GetViewModelInstance(UserViewModelAlias); }