예제 #1
0
 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);
 }
예제 #2
0
 public SignInCommand(MainViewModel vm, AuthService authService)
 {
     _authService = authService;
     _vm = vm;
 }
예제 #3
0
 public RegisterCommand(MainViewModel vm, AuthService authService)
 {
     _authService = authService;
     _vm = vm;
 }