private void SetRepoDetailPanel(RepoDetail repoDetail) { RepoNameTextBox.Text = repoDetail.Name; UpdatedAtTextBox.Text = repoDetail.Updated_at.ToString(); WatchersTextBox.Text = repoDetail.Watchers_count.ToString(); OwnerNameTextBox.Text = repoDetail.Owner.Login; OwnerTypeTextBox.Text = repoDetail.Owner.Type; }
private async void Window_Loaded(object sender, RoutedEventArgs e) { _context.Database.EnsureCreated(); _context.Orders.Load(); ordersViewSource.Source = _context.Orders.Local.ToObservableCollection(); Task <RepoDetail> repoDetailTask = GetRepoDetails(); RepoDetail repoDetail = await repoDetailTask; SetRepoDetailPanel(repoDetail); }