コード例 #1
0
 public ProgressWinow(string path, FileInfo[] files, CryptChoise choise)
 {
     InitializeComponent();
     CurrentProgress      = 0;
     Path                 = path;
     Files                = files;
     Choise               = choise;
     gProgressBar.Maximum = files.Length;
     rsa = new RSACrypt();
     initWorker();
     if (Choise == CryptChoise.Encrypt)
     {
         Title = $"Шифрование {Path}";
     }
     else if (Choise == CryptChoise.Decrypt)
     {
         Title = $"Дешифровка {Path}";
     }
 }
コード例 #2
0
 public MainWindow()
 {
     InitializeComponent();
     rsaCrypt = new RSACrypt();
 }