终端一体化运控平台
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 

53 líneas
1.5 KiB

  1. using BPA.Helper;
  2. using BPASmartClient.DosingSystem.ViewModel;
  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.DosingSystem.View
  18. {
  19. /// <summary>
  20. /// MaterialDosageView.xaml 的交互逻辑
  21. /// </summary>
  22. public partial class MaterialDosageView : UserControl
  23. {
  24. public MaterialDosageView()
  25. {
  26. InitializeComponent();
  27. this.test.ItemsSource = MaterialDosageViewModel.ProcessesAllweight;
  28. }
  29. private void RadioButton_Click(object sender, RoutedEventArgs e)
  30. {
  31. this.test.ItemsSource = MaterialDosageViewModel.ProcessesAllweight;
  32. }
  33. private void RadioButton_Click_1(object sender, RoutedEventArgs e)
  34. {
  35. if (this.DataContext is MaterialDosageViewModel viewModel)
  36. {
  37. this.test.ItemsSource = MaterialDosageViewModel.UserTreeCompeleteAllweight;
  38. }
  39. }
  40. private void RadioButton_Click_2(object sender, RoutedEventArgs e)
  41. {
  42. if (this.DataContext is MaterialDosageViewModel viewModel)
  43. {
  44. this.test.ItemsSource = MaterialDosageViewModel.OldRecipeAllweight;
  45. }
  46. }
  47. }
  48. }