public ProjectPageViewModel() { _navigationService = SimpleIoc.Default.GetInstance <IStackNavigationService>(); _vstsRepository = SimpleIoc.Default.GetInstance <IVSTSRepository>(); ToProjectItemDetailsPage = new RelayCommand <RichWorkItem>(workItem => _navigationService.ToProjectItemDetailsPage(workItem)); ToProfilePage = new RelayCommand(() => _navigationService.ToProfilePage()); ReloadPage = new AsyncCommand(async() => await LoadTeamsAndWorkItems()); CurrentView = "Sprint"; }
public ProjectPageViewModel() { _navigationService = SimpleIoc.Default.GetInstance <IStackNavigationService>(); _vstsRepository = SimpleIoc.Default.GetInstance <IVSTSRepository>(); _userPreferencesService = SimpleIoc.Default.GetInstance <IUserPreferencesService>(); ToProjectItemDetailsPage = new RelayCommand <RichWorkItem>(workItem => _navigationService.ToProjectItemDetailsPage(workItem, CurrentProject)); ToOrganizationListPage = new RelayCommand(() => _navigationService.ToOrganizationListPage()); ReloadPage = new AsyncCommand(async() => await LoadData(CurrentProject)); CurrentView = "Summary"; }
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()); }