コード例 #1
0
        private SummaryTextComponent BuildSummaryComponent(CheckableDataGridViewRow row)
        {
            LicenseManagerSummaryComponent component               = new LicenseManagerSummaryComponent();
            LicenseManagerSummaryDecorator licenseTypeDecorator    = new LicenseManagerSummaryLicenseTypeDecorator(component, row);
            LicenseManagerSummaryDecorator licenseSocketsDecorator = new LicenseManagerSummaryLicenseSocketsDecorator(licenseTypeDecorator, row);
            LicenseManagerSummaryDecorator licenseExpiresDecorator = new LicenseManagerSummaryLicenseExpiresDecorator(licenseSocketsDecorator, row);
            LicenseManagerSummaryDecorator licenseServerDecorator  = new LicenseManagerSummaryLicenseServerDecorator(licenseExpiresDecorator, row);

            return(licenseServerDecorator);
        }
コード例 #2
0
 private SummaryTextComponent BuildSummaryComponent(CheckableDataGridViewRow row)
 {
     LicenseManagerSummaryComponent component = new LicenseManagerSummaryComponent();
     LicenseManagerSummaryDecorator licenseTypeDecorator = new LicenseManagerSummaryLicenseTypeDecorator(component, row);
     LicenseManagerSummaryDecorator licenseSocketsDecorator = new LicenseManagerSummaryLicenseSocketsDecorator(licenseTypeDecorator, row);
     LicenseManagerSummaryDecorator licenseExpiresDecorator = new LicenseManagerSummaryLicenseExpiresDecorator(licenseSocketsDecorator, row);
     LicenseManagerSummaryDecorator licenseServerDecorator = new LicenseManagerSummaryLicenseServerDecorator(licenseExpiresDecorator, row);
     return licenseServerDecorator;
 }