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

NewProjectView.xaml.cs 1.0 KiB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. ActionManage.GetInstance.Register(new Action<object>((o) =>
  26. {
  27. this.DialogResult = true;
  28. this.Tag = o;
  29. this.Close();
  30. }), "CreateCommand", true);
  31. ActionManage.GetInstance.Register(new Action(() =>
  32. {
  33. this.DialogResult = false;
  34. this.Close();
  35. }), "CancelCommand", true);
  36. }
  37. }
  38. }