private void Category_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { func.ClearItems(Name); string item = Category.SelectedItem.ToString(); salesOrderDao.QueryName(item, Name); } catch (Exception) { } }
//名称 private void Name_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { string item = Name.SelectedItem.ToString(); SalesOrderDao salesOrderDao = new SalesOrderDao(); salesOrderDao.QueryName(item, DataGrid_SalesView); } catch (Exception) { } }