Пример #1
0
        public void Execute()
        {
            var entities = filesView.SelectedEntities;

            if (entities.Count == 0)
            {
                throw new InvalidOperationException("filesView.SelectedEntities.Count is empty");
            }
            var keySerializer = new KeySerializer(new BigNumberHexSerializer());

            using (var form = formFactory.CreateCipherForm()) {
                var presenter = new CipherFormPresenter(form,
                                                        entities,
                                                        rsaFactory,
                                                        keySerializer,
                                                        commandsContainer,
                                                        fileUnifier,
                                                        environmentHelper,
                                                        messageHelper,
                                                        options);
                presenter.ShowDialog();
            }
        }