public MainViewModel(AuthService authService) { Login = "******"; IsSignIn = true; IsSignOut = IsRegister = false; SignInCommand = new SignInCommand(this, authService); SignOutCommand = new SignOutCommand(this); RegisterCommand = new RegisterCommand(this, authService); ToSignInCommand = new ToSignInCommand(this); ToRegisterCommand = new ToRegisterCommand(this); }
public SignInCommand(MainViewModel vm, AuthService authService) { _authService = authService; _vm = vm; }
public RegisterCommand(MainViewModel vm, AuthService authService) { _authService = authService; _vm = vm; }