예제 #1
0
 public override void PushViewController()
 {
     _currentUser = _objectStore.Load<AgileZenUser>("AgileZenUser.txt");
     var root = CreateRoot ();
     _dv = new DialogViewController (root, true);
     PushViewController (_dv, true);
     GetMe();
 }
예제 #2
0
        private void HandleMeCallFinished(Result<AgileZenUser> result)
        {
            _navController.InvokeOnMainThread
                (
                    delegate
                    {
                        bool couldFetchUser = result.Error == null;
                        if(couldFetchUser)
                        {
                            _currentUser = result.Value;

                        }
                        else
                        {
                            _currentUser = new AgileZenUser();
                        }
                        UpdateRoot(couldFetchUser);
                        StopAnimatingHud();
                    }
                );
        }