markus / KCOM / Controls / Alert.xaml.cs @ 7841e9fb
이력 | 보기 | 이력해설 | 다운로드 (1.09 KB)
1 | 787a4489 | KangIngu | using System; |
---|---|---|---|
2 | using System.Collections.Generic; |
||
3 | using System.Linq; |
||
4 | using System.Text; |
||
5 | using System.Windows; |
||
6 | using System.Windows.Controls; |
||
7 | using System.Windows.Data; |
||
8 | using System.Windows.Documents; |
||
9 | using System.Windows.Input; |
||
10 | using System.Windows.Media; |
||
11 | using System.Windows.Media.Imaging; |
||
12 | using System.Windows.Navigation; |
||
13 | using System.Windows.Shapes; |
||
14 | |||
15 | namespace KCOM.Controls |
||
16 | { |
||
17 | /// <summary> |
||
18 | /// Alert.xaml에 대한 상호 작용 논리 |
||
19 | /// </summary> |
||
20 | /// |
||
21 | public partial class Alert : UserControl |
||
22 | { |
||
23 | //public string SourceUri = @"D:\Temp\Alert.png"; |
||
24 | public string Text = ""; |
||
25 | |||
26 | public Alert(string Message) |
||
27 | { |
||
28 | InitializeComponent(); |
||
29 | textbox.Text = Message; |
||
30 | } |
||
31 | |||
32 | private void BtnOK_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
||
33 | { |
||
34 | Window window = Window.GetWindow(this); |
||
35 | window.Close(); |
||
36 | } |
||
37 | |||
38 | private void BtnOK_PreviewKeyDown(object sender, KeyEventArgs e) |
||
39 | { |
||
40 | Window window = Window.GetWindow(this); |
||
41 | window.Close(); |
||
42 | } |
||
43 | } |
||
44 | } |