终端一体化运控平台
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

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. }