private async void Page_Loaded(object sender, RoutedEventArgs e) { PositionCombo.ItemsSource = await _electionConfigurationService.GetAllPositionsAsync(); RankCombo.ItemsSource = await _electionConfigurationService.GetAllRanksAsync(); RefreshCandidateList(); }
private async void AdminSetUpPositionPage_Loaded(object sender, RoutedEventArgs e) { _electionConfigurationService = container.Resolve <IElectionConfigurationService>(); FacultyList.ItemsSource = await _electionConfigurationService.GetFacultiesAsync(); PositionList.ItemsSource = await _electionConfigurationService.GetAllPositionsAsync(true); RankList.ItemsSource = await _electionConfigurationService.GetAllRanksAsync(); }