public ProjectItemDetailsPageViewModel()
        {
            _navigationService = SimpleIoc.Default.GetInstance <IStackNavigationService>();
            _vstsRepository    = SimpleIoc.Default.GetInstance <IVSTSRepository>();

            AssignToMe               = new AsyncCommand(async() => await AssignToMeAndRefresh());
            ToProfilePage            = new RelayCommand(() => _navigationService.ToProfilePage());
            ReloadPage               = new RelayCommand(() => ReloadPageCommand());
            ToPreviousPage           = new RelayCommand(() => _navigationService.GoBack());
            ToProjectItemDetailsPage = new RelayCommand <RichWorkItem>(
                workItem => _navigationService.ToProjectItemDetailsPage(workItem, CurrentProject));
            ToParentProjectItemDetailsPage = new RelayCommand(() => OnWorkItemClicked(ParentWorkItem.Result));
            ViewMore          = new AsyncCommand(async() => await LaunchBrowserWithWorkItemUri());
            HideDoubleBackTip = new RelayCommand(async() => await HideDoubleBackTipCommand());
        }
예제 #2
0
 protected void Back()
 {
     _navigationService.GoBack();
 }