コード例 #1
0
        private void OnLogin()
        {
            var statusCode = _authenticator.Authenticate(Username, Password);

            if (statusCode == HttpStatusCode.OK)
            {
                ErrorOccurred = false;
                var parameters = new NavigationParameters {
                    { "token", _authenticator.Token }
                };
                _navigator.GoTo(AppViews.ServersView, parameters);
            }
            else
            {
                ErrorOccurred = true;
            }
        }
コード例 #2
0
 private void OnLogout()
 {
     _navigator.GoTo(AppViews.InitialView);
 }