Example #1
0
        public void ShowLogin(bool subOnly)
        {
            LoginViewVM vm = _kernel.Get <LoginViewVM>();

            vm.SubOnly = subOnly;

            Navigate(vm);
        }
Example #2
0
 public IActionResult Login(LoginViewVM model = null)
 {
     if (model == null)
     {
         model = new LoginViewVM();
     }
     return(View(model));
 }
Example #3
0
        private void LoginView_Loaded(object sender, RoutedEventArgs e)
        {
            chrome.IsBrowserInitializedChanged += Chrome_IsBrowserInitializedChanged;

            _vm = DataContext as LoginViewVM;

            if (!_vm.SubOnly)
            {
                chrome.RequestHandler = new AuthRequestHandler(Dispatcher, _vm);
            }
        }
 public AuthRequestHandler(Dispatcher dispatcher, LoginViewVM vm)
 {
     _dispatcher = dispatcher;
     _vm         = vm;
 }
 public AuthCookieVisitor(Dispatcher dispatcher, LoginViewVM vm)
 {
     _dispatcher = dispatcher;
     _vm         = vm;
 }