markus / ConvertService / ServiceBase / ConnectionStringBuild / MainWindow.xaml.cs @ b92f142f
이력 | 보기 | 이력해설 | 다운로드 (1.76 KB)
1 | 53c9637d | taeseongkim | 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 | using Markus.Service.Extensions; |
||
16 | |||
17 | namespace ConnectionStringBuild |
||
18 | { |
||
19 | /// <summary> |
||
20 | /// MainWindow.xaml에 대한 상호 작용 논리 |
||
21 | /// </summary> |
||
22 | public partial class MainWindow : Window |
||
23 | { |
||
24 | public MainWindow() |
||
25 | { |
||
26 | InitializeComponent(); |
||
27 | } |
||
28 | |||
29 | private void Button_Click(object sender, RoutedEventArgs e) |
||
30 | { |
||
31 | if(!string.IsNullOrWhiteSpace(txtDecrypt.Text) && string.IsNullOrWhiteSpace(txtEncrypt.Text)) |
||
32 | { |
||
33 | txtEncrypt.Text = Encrypt.AESEncrypter.Encrypt(txtDecrypt.Text); |
||
34 | } |
||
35 | else if (string.IsNullOrWhiteSpace(txtDecrypt.Text) && !string.IsNullOrWhiteSpace(txtEncrypt.Text)) |
||
36 | { |
||
37 | txtDecrypt.Text = Encrypt.AESEncrypter.Decrypt(txtEncrypt.Text); |
||
38 | } |
||
39 | |||
40 | } |
||
41 | 0a89a17f | taeseongkim | |
42 | private void ButtonTest_Click(object sender, RoutedEventArgs e) |
||
43 | { |
||
44 | try |
||
45 | { |
||
46 | using (Markus.Service.DataBase.ConvertDatabase database = new Markus.Service.DataBase.ConvertDatabase(txtDecrypt.Text)) |
||
47 | { |
||
48 | b92f142f | taeseongkim | var result = database.GetWaitConvertItems(new List<string>(),30).ToList(); |
49 | 0a89a17f | taeseongkim | |
50 | b92f142f | taeseongkim | txtLog.Text += "Test Ok" + result.Count().ToString(); |
51 | 0a89a17f | taeseongkim | } |
52 | } |
||
53 | catch (Exception ex) |
||
54 | { |
||
55 | txtLog.Text += ex.ToString(); |
||
56 | } |
||
57 | } |
||
58 | 53c9637d | taeseongkim | } |
59 | } |