List<Book> books = e.Result;
this.ComboBox1.ItemsSource = books;
this.ComboBox1.DisplayMemberPath = "bookID";
this.ComboBox1.SelectedIndex = i;
// 遍历有的 然后再取 序号 这样的话才可以为combox 赋值
private int GetSelectedBookIndexByContent(string content)
{
int result = 0;
foreach (Book item in books)
{
if (item.bookID == content)
{
break;
}
result ++;
}
return result;
}