internal FrmUpdatePublisher(FrmUpdateFilesWizard filesWizard, FrmUpdateInformationsWizard informationsWizard, FrmUpdateRulesWizard isInstalledRulesWizard, FrmUpdateRulesWizard isInstallableRulesWizard, FrmUpdateApplicabilityMetadata updateApplicabilityMetadata)
 {
     Logger.EnteringMethod("FrmUpdatePublisher");
     InitializeComponent();
     this._wsus                        = WsusWrapper.GetInstance();
     this._filesWizard                 = filesWizard;
     this._informationsWizard          = informationsWizard;
     this._isInstalledRulesWizard      = isInstalledRulesWizard;
     this._isInstallableRulesWizard    = isInstallableRulesWizard;
     this._updateApplicabilityMetadata = updateApplicabilityMetadata;
 }
示例#2
0
 private void CleanAndClose()
 {
     Logger.EnteringMethod();
     updateFilesWizard.Dispose();
     updateFilesWizard = null;
     if (updateInformationsWizard != null)
     {
         updateInformationsWizard.Dispose();
     }
     updateInformationsWizard = null;
     updateIsInstalledRulesWizard.Dispose();
     updateIsInstalledRulesWizard = null;
     updateIsInstallableRulesWizard.Dispose();
     updateIsInstallableRulesWizard = null;
     this.Close();
 }
示例#3
0
        private void InitializeComponent(Dictionary <Guid, Company> Companies, Company SelectedCompany, Product SelectedProduct, SoftwareDistributionPackage sdp)
        {
            Logger.EnteringMethod();

            this.Companies           = Companies;
            updateInformationsWizard = new FrmUpdateInformationsWizard(this.Companies, SelectedCompany, SelectedProduct, sdp);

            // UpdateFilesWizard :
            updateFilesWizard.TopLevel = false;
            updateFilesWizard.Controls["btnNext"].Click   += new EventHandler(updateFilesWizard_btnNext_Click);
            updateFilesWizard.Controls["btnCancel"].Click += new EventHandler(updateFilesWizard_btnCancel_Click);

            //UpdateInformationsWizard :
            updateInformationsWizard.TopLevel = false;
            updateInformationsWizard.Controls["btnNext"].Click     += new EventHandler(updateInformationsWizard_btnNext_Click);
            updateInformationsWizard.Controls["btnCancel"].Click   += new EventHandler(updateInformationsWizard_btnCancel_Click);
            updateInformationsWizard.Controls["btnPrevious"].Click += new EventHandler(updateInformationsWizard_btnPrevious_Click);


            //updateIsInstalledRulesWizard :
            updateIsInstalledRulesWizard.TopLevel = false;
            updateIsInstalledRulesWizard.Controls["tableLayoutPanel1"].Controls["btnNext"].Click     += new EventHandler(updateIsInstalledRulesWizard_btnNext_Click);
            updateIsInstalledRulesWizard.Controls["tableLayoutPanel1"].Controls["btnCancel"].Click   += new EventHandler(updateIsInstalledRulesWizard_btnCancel_Click);
            updateIsInstalledRulesWizard.Controls["tableLayoutPanel1"].Controls["btnPrevious"].Click += new EventHandler(updateIsInstalledRulesWizard_btnPrevious_Click);

            //updateIsInstallableRulesWizard :
            updateIsInstallableRulesWizard.TopLevel = false;
            updateIsInstallableRulesWizard.Controls["tableLayoutPanel1"].Controls["btnNext"].Click     += new EventHandler(updateIsInstallableRulesWizard_btnNext_Click);
            updateIsInstallableRulesWizard.Controls["tableLayoutPanel1"].Controls["btnCancel"].Click   += new EventHandler(updateIsInstallableRulesWizard_btnCancel_Click);
            updateIsInstallableRulesWizard.Controls["tableLayoutPanel1"].Controls["btnPrevious"].Click += new EventHandler(updateIsInstallableRulesWizard_btnPrevious_Click);

            //updateApplicabilityMetadata :
            updateApplicabilityMetadata.TopLevel = false;
            updateApplicabilityMetadata.Controls["btnPublish"].Click  += new EventHandler(updateApplicabilityMetadata_btnPublish_Click);
            updateApplicabilityMetadata.Controls["btnCancel"].Click   += new EventHandler(updateApplicabilityMetadata_btnCancel_Click);
            updateApplicabilityMetadata.Controls["btnPrevious"].Click += new EventHandler(updateApplicabilityMetadata_btnPrevious_Click);

            if (Revising)
            {
                InitializeInformationsWizard();
            }
            else
            {
                InitializeUpdateFilesWizard();
            }
        }