Ejemplo n.º 1
0
        public MainViewController(IMainForm attachedForm)
        {
            _fileSystemService  = new FileSystemService();
            _overviewService    = new OverviewService();
            _versionInfoService = new VersionInformationService();

            _attachedForm = attachedForm;
            _attachedForm.ServerFolderSelected          += AttachedFormServerFolderSelected;
            _attachedForm.VersionNumberSelectionChanged += AttachedFormVersionNumberSelectionChanged;
            _attachedForm.RequestZipImport       += AttachedFormRequestZipImport;
            _attachedForm.RequestNewServerWizard += AttachedFormRequestNewServerWizard;

            if (!string.IsNullOrEmpty(Settings.Default.LastUsedServerPath))
            {
                AttachedFormServerFolderSelected(null, Settings.Default.LastUsedServerPath);
            }
        }
Ejemplo n.º 2
0
        public ZipWizardController(IZipWizard attachedView, string activeServer, Overview activeOverview)
        {
            _activeServer   = activeServer;
            _activeOverview = activeOverview;

            _zipUpdateService   = new ZipUpdateFileService();
            _versionInfoService = new VersionInformationService();
            _overviewService    = new OverviewService();
            _fileService        = new FileSystemService();

            _attachedView = attachedView;
            _attachedView.Page1SelectedFileChanged += AttachedViewPage1SelectedFileChanged;

            _attachedView.Page1Activated += _attachedView_Page1Activated;
            _attachedView.Page2Activated += AttachedViewPage2Activated;
            _attachedView.Page3Activated += AttachedViewPage3Activated;
            _attachedView.Page4Activated += AttachedViewPage4Activated;
        }