Example #1
0
 internal static InstallerControl CreateDeploymentTargetsControl()
 {
     InstallerControl control = null;
       SPFeatureScope featureScope = InstallConfiguration.FeatureScope;
       if (featureScope == SPFeatureScope.Farm)
       {
       control = new DeploymentTargetsControl();
       control.Title = Resources.CommonUIStrings.controlTitleFarmDeployment;
       control.SubTitle = Resources.CommonUIStrings.controlSubTitleFarmDeployment;
       }
       else if (featureScope == SPFeatureScope.Site)
       {
       control = new SiteCollectionDeploymentTargetsControl();
       control.Title = Resources.CommonUIStrings.controlTitleSiteDeployment;
       control.SubTitle = Resources.CommonUIStrings.controlSubTitleSiteDeployment;
       }
       return control;
 }
Example #2
0
        internal static InstallerControl CreateDeploymentTargetsControl()
        {
            InstallerControl control      = null;
            SPFeatureScope   featureScope = InstallConfiguration.FeatureScope;

            if (featureScope == SPFeatureScope.Farm)
            {
                control          = new DeploymentTargetsControl();
                control.Title    = Resources.CommonUIStrings.controlTitleFarmDeployment;
                control.SubTitle = Resources.CommonUIStrings.controlSubTitleFarmDeployment;
            }
            else if (featureScope == SPFeatureScope.Site)
            {
                control          = new SiteCollectionDeploymentTargetsControl();
                control.Title    = Resources.CommonUIStrings.controlTitleSiteDeployment;
                control.SubTitle = Resources.CommonUIStrings.controlSubTitleSiteDeployment;
            }
            return(control);
        }