public LoginViewModel(AppRootViewModel parentViewModel) { _parentViewModel = parentViewModel; Username = LocalSettings.I.LastUsername; APL.I.AuthenticationFailed += onAuthenticationFailed; APL.I.AuthenticationSuccess += onAuthenticationSuccess; }
private static MainViewModel MainViewEvaluator(AppRootViewModel i) { return(new MainViewModel(i)); }
private static RegisterViewModel RegisterViewEvaluator(AppRootViewModel i) { return(new RegisterViewModel(i)); }
private static LoginViewModel LoginViewEvaluator(AppRootViewModel i) { return(new LoginViewModel(i)); }
public RegisterViewModel(AppRootViewModel parentReference) { _parentReference = parentReference; }
public MainViewModel(AppRootViewModel parentViewModel) { _parentViewModel = parentViewModel; APL.I.AuthenticationSuccess += OnAuthenticationSuccess; }