void InsertTickets_do(object sender, GetBasicLotteryTicketsCompletedEventArgs e) { if (!e.Result.Success) { return; } input_tickets.ItemsSource = e.Result.Info; input_tickets.SelectedIndex = 0; }
void InsertTickets_do(object sender, GetBasicLotteryTicketsCompletedEventArgs e) { if (!e.Result.Success) { return; } input_tickets.ItemsSource = e.Result.Info; input_tickets.SelectedItem = e.Result.Info.First(x => x.Id == this.State.Id); }