コード例 #1
0
        public void Execute()
        {
            var file = filesView.SelectedFile;

            if (!CheckFile(file))
            {
                throw new InvalidOperationException("Selected file is null or is not rsa.");
            }
            using (var form = formFactory.CreateDecipherForm()) {
                form.InputFileName = file.FullName;
                var serializer = new KeySerializer(new BigNumberHexSerializer());
                new DecipherFormPresenter(form, rsaFactory, serializer, commandsContainer, file, environmentHelper, messageHelper,
                                          fileUnifier);
                form.ShowDialog();
            }
        }