public PdfCreatorApplicationContext(string filename, bool email)
 {
     var fullName  = GetFullNameFromDms(filename);
     _application = ApplicationFactory.Create(fullName);
     _view = new PublishPdfForm(_application, email);
     _view.PublishCompleted += OnPublishCompleted;
     _view.PublishCancelled += OnShutdownApplication;
     _view.ShowDialog();
 }
Exemplo n.º 2
0
        public PublishPdfPresenter(IPublishPdfView view, IPublishPdfModel model)
        {
            _view = view;
            _model = model;

            _model.PublishCompleted += _view.OnPublishCompleted;
            _model.ProgessMessage += _view.OnProgessMessage;
            _model.Error += _view.OnError;

            _view.FormClosing += _model.OnFormClosing;
        }