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}"; } }
public MainWindow() { InitializeComponent(); rsaCrypt = new RSACrypt(); }