终端一体化运控平台
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 

45 rindas
1.2 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Windows;
  7. using System.Windows.Controls;
  8. using System.Windows.Data;
  9. using System.Windows.Documents;
  10. using System.Windows.Input;
  11. using System.Windows.Media;
  12. using System.Windows.Media.Imaging;
  13. using System.Windows.Shapes;
  14. using BPA.Helper;
  15. namespace BPASmartClient.SmallBatchingSystem.Views
  16. {
  17. /// <summary>
  18. /// NewSiloView.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class NewSiloView : Window
  21. {
  22. public NewSiloView()
  23. {
  24. InitializeComponent();
  25. ActionManage.GetInstance.Register(new Action(() => { this.Close(); }), "SiloClose", true);
  26. }
  27. private void Button_Click(object sender, RoutedEventArgs e)
  28. {
  29. this.Close();
  30. }
  31. private void Button_Click_1(object sender, RoutedEventArgs e)
  32. {
  33. Json<ConfigInfoModel>.Data.SiloInfoModels.Add(new SiloInfoModel()
  34. {
  35. SiloLoc = Convert.ToInt32(this.SiloLoc.Text),
  36. SiloName = this.SiloName.Text,
  37. });
  38. this.Close();
  39. }
  40. }
  41. }