프로젝트

일반

사용자정보

통계
| 브랜치(Branch): | 개정판:

markus / ConvertService / ServiceBase / ConnectionStringBuild / MainWindow.xaml.cs @ 53c9637d

이력 | 보기 | 이력해설 | 다운로드 (1.18 KB)

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.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
    }
42
}
클립보드 이미지 추가 (최대 크기: 500 MB)