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

42 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. namespace BPASmartClient.ScreenLib
  15. {
  16. /// <summary>
  17. /// WindowShow.xaml 的交互逻辑
  18. /// </summary>
  19. public partial class WindowShow : Window
  20. {
  21. public WindowShow()
  22. {
  23. InitializeComponent();
  24. this.KeyDown += new KeyEventHandler((o, k) =>
  25. {
  26. if (k.Key == Key.Escape)
  27. {
  28. if (MessageBox.Show("确认是否退出大屏!", "退出提示", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
  29. this.Close();
  30. }
  31. });
  32. }
  33. public void Init(string title, UserControl user)
  34. {
  35. titlename.Header = title;
  36. main.Child = user;
  37. }
  38. }
  39. }