markus / KCOM / Controls / SymbolPrompt.xaml.cs @ 41e3c8ac
이력 | 보기 | 이력해설 | 다운로드 (1.45 KB)
1 | 684ef11c | ljiyeon | 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.Navigation; |
||
14 | using System.Windows.Shapes; |
||
15 | |||
16 | namespace KCOM.Controls |
||
17 | { |
||
18 | /// <summary> |
||
19 | /// SymbolPopup.xaml에 대한 상호 작용 논리 |
||
20 | /// </summary> |
||
21 | public partial class SymbolPrompt : UserControl |
||
22 | { |
||
23 | 7fa95b67 | humkyung | public string SymbolName { get; set; } |
24 | public bool IsSvg { get; set; } = true; |
||
25 | public bool IsPng { get; set; } = false; |
||
26 | |||
27 | 684ef11c | ljiyeon | public SymbolPrompt() |
28 | { |
||
29 | InitializeComponent(); |
||
30 | } |
||
31 | |||
32 | private void BtnOK_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) |
||
33 | { |
||
34 | Window window = Window.GetWindow(this); |
||
35 | 7fa95b67 | humkyung | SymbolName = symbolName.Text; |
36 | IsSvg = svgRadioBox.IsChecked.Value; |
||
37 | IsPng = pngRadioBox.IsChecked.Value; |
||
38 | 684ef11c | ljiyeon | window.Close(); |
39 | } |
||
40 | |||
41 | private void BtnOK_PreviewKeyDown(object sender, KeyEventArgs e) |
||
42 | { |
||
43 | Window window = Window.GetWindow(this); |
||
44 | window.Close(); |
||
45 | } |
||
46 | 41e3c8ac | swate0609 | |
47 | private void BtnCancel_Click(object sender, RoutedEventArgs e) |
||
48 | { |
||
49 | Window window = Window.GetWindow(this); |
||
50 | window.Close(); |
||
51 | } |
||
52 | 684ef11c | ljiyeon | } |
53 | } |