终端一体化运控平台
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.

NewRecipeView.xaml.cs 1.1 KiB

123456789101112131415161718192021222324252627282930313233
  1. using BPA.Helper;
  2. using System;
  3. using System.Windows;
  4. using System.Windows.Controls;
  5. using System.Windows.Input;
  6. namespace BPASmartClient.Academy.View
  7. {
  8. /// <summary>
  9. /// NewRecipeView.xaml 的交互逻辑
  10. /// </summary>
  11. public partial class NewRecipeView : Window
  12. {
  13. public NewRecipeView()
  14. {
  15. InitializeComponent();
  16. //this.btClose.Click += (o, e) => { this.Close(); };
  17. this.br.MouseLeftButtonDown += (o, e) => { if (e.LeftButton == MouseButtonState.Pressed) this.DragMove(); };
  18. ActionManage.GetInstance.Register(new Action(() => { this.Close(); }), "CloseNewRecipeView", true);
  19. this.Unloaded += (o, s) => { Json<LocalRecipe>.Save(); };
  20. }
  21. private void cb_SelectionChanged(object sender, SelectionChangedEventArgs e)
  22. {
  23. //ActionManage.GetInstance.SendAsync("原料选择修改", (sender as ComboBox).SelectedValue);
  24. }
  25. private void btClose_Click(object sender, RoutedEventArgs e)
  26. {
  27. this.Close();
  28. }
  29. }
  30. }