private void Name_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { func.ClearItems(Type); string item = Name.SelectedItem.ToString(); salesOrderDao.QueryType(item, Type); } catch (Exception) { } }
//型号 private void Type_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { string item = Type.SelectedItem.ToString(); SalesOrderDao salesOrderDao = new SalesOrderDao(); salesOrderDao.QueryType(item, DataGrid_SalesView); } catch (Exception) { } }