|
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Data;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using System.Windows.Shapes;
-
- namespace BPASmartClient.ScreenLib
- {
- /// <summary>
- /// WindowShow.xaml 的交互逻辑
- /// </summary>
- public partial class WindowShow : Window
- {
- public WindowShow()
- {
- InitializeComponent();
- this.KeyDown += new KeyEventHandler((o, k) =>
- {
- if (k.Key == Key.Escape)
- {
- if (MessageBox.Show("确认是否退出大屏!", "退出提示", MessageBoxButton.YesNo) == MessageBoxResult.Yes)
- this.Close();
- }
- });
- }
-
- public void Init(string title, UserControl user)
- {
- titlename.Header = title;
- main.Child = user;
- }
- }
- }
|