source: trunk/PKCS1/WpfControls/Components/SigGenKuehnControl.xaml.cs @ 1650

Last change on this file since 1650 was 1650, checked in by schomburg, 11 years ago

initial commit of PKCS1 Plugin

File size: 1.6 KB
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Windows;
6using System.Windows.Controls;
7using System.Windows.Data;
8using System.Windows.Documents;
9using System.Windows.Input;
10using System.Windows.Media;
11using System.Windows.Media.Imaging;
12using System.Windows.Navigation;
13using System.Windows.Shapes;
14using PKCS1.Library;
15
16namespace PKCS1.WpfControls.Components
17{
18    /// <summary>
19    /// Interaktionslogik für SigGenKuehnControl.xaml
20    /// </summary>
21    public partial class SigGenKuehnControl : UserControl
22    {
23        private KuehnSignature m_signature = new KuehnSignature();
24
25        public SigGenKuehnControl()
26        {
27            InitializeComponent();
28        }
29
30        private void bExecute_Click(object sender, RoutedEventArgs e)
31        {
32            Cursor = Cursors.Wait;
33
34            this.m_signature = (KuehnSignature)SignatureHandler.getInstance().getKuehnSig();
35
36            this.m_signature.GenerateSignature();
37            UserControlHelper.loadRtbColoredSig(this.rtbResult, this.m_signature.GetSignatureDecToHexString());
38            this.tbResultEncrypted.Text = this.m_signature.GetSignatureToHexString();
39
40            SignatureHandler.getInstance().setKuehnSig(this.m_signature);
41
42            Cursor = Cursors.Arrow;
43        }
44
45        private void tbResultEncrypted_TextChanged(object sender, TextChangedEventArgs e)
46        {
47
48        }
49
50        private void rtbResult_TextChanged(object sender, TextChangedEventArgs e)
51        {
52
53        }
54    }
55}
Note: See TracBrowser for help on using the repository browser.