终端一体化运控平台
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

43 lines
1.1 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 BPASmart.ConfigurationSoftware
  16. {
  17. /// <summary>
  18. /// NewProjectView.xaml 的交互逻辑
  19. /// </summary>
  20. public partial class NewProjectView : Window
  21. {
  22. public NewProjectView()
  23. {
  24. InitializeComponent();
  25. projectName.Focus();
  26. ActionManage.GetInstance.Register(new Action<object>((o) =>
  27. {
  28. this.DialogResult = true;
  29. this.Tag = o;
  30. this.Close();
  31. }), "CreateCommand", true);
  32. ActionManage.GetInstance.Register(new Action(() =>
  33. {
  34. this.DialogResult = false;
  35. this.Close();
  36. }), "CancelCommand", true);
  37. }
  38. }
  39. }