终端一体化运控平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

39 lines
1012 B

  1. using BPASmartClient.MilkWithTea.ViewModel;
  2. using Model;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. using System.Windows;
  9. using System.Windows.Controls;
  10. using System.Windows.Data;
  11. using System.Windows.Documents;
  12. using System.Windows.Input;
  13. using System.Windows.Media;
  14. using System.Windows.Media.Imaging;
  15. using System.Windows.Navigation;
  16. using System.Windows.Shapes;
  17. namespace BPASmartClient.MilkWithTea.View
  18. {
  19. /// <summary>
  20. /// MainControlView.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class MainControlView : UserControl
  23. {
  24. public MainControlView()
  25. {
  26. InitializeComponent();
  27. }
  28. private void ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
  29. {
  30. if((sender as ListBox).SelectedItem is LocalTeaWithMilkConfig config)
  31. {
  32. recipeList.ItemsSource = config.materialRecipes;
  33. }
  34. }
  35. }
  36. }