예제 #1
0
 internal static InstallProcessControl CreateProcessControl()
 {
     InstallProcessControl control = new InstallProcessControl();
       control.Title = Resources.CommonUIStrings.controlTitleInstalling;
       control.SubTitle = Resources.CommonUIStrings.controlSubTitleInstalling;
       return control;
 }
예제 #2
0
 private FeaturesCommand(InstallProcessControl parent, FeatureActivator.ActivationDirection direction, InstallOperation operation)
     : base(parent)
 {
     this.direction = direction;
     this.operation = operation;
     requestedLocs  = InstallProcessControl.GetFeaturedLocations(operation);
 }
예제 #3
0
 private FeatureActivator(ActivationDirection direction, InstallOperation operation, ILog log)
 {
     this.direction = direction;
     this.operation = operation;
     this.log       = log;
     requestedLocs  = InstallProcessControl.GetFeaturedLocations(operation);
 }
예제 #4
0
        internal static InstallProcessControl CreateProcessControl()
        {
            InstallProcessControl control = new InstallProcessControl();

            control.Title    = Resources.CommonUIStrings.controlTitleInstalling;
            control.SubTitle = Resources.CommonUIStrings.controlSubTitleInstalling;
            return(control);
        }
예제 #5
0
        private void UpdateDisplay()
        {
            FeatureLocations fLocs           = InstallProcessControl.GetFeaturedLocations(Form.Operation);
            string           locationSummary = (new LocationDisplay(fLocs)).GetLocationSummary();

            featureLocationSummaryLabel.Text = locationSummary;
            if (fLocs.GetTotalFeatureLocations() == 0)
            {
                dodeactivateFeaturesChoice.Enabled = false;
                doactivateFeaturesChoice.Enabled   = false;
            }
            else
            {
                dodeactivateFeaturesChoice.Enabled = true;
                doactivateFeaturesChoice.Enabled   = upgradeRadioButton.Checked && dodeactivateFeaturesChoice.Checked;
            }
        }
 internal SiteCollectionFeatureCommand(InstallProcessControl parent, IList<SiteLoc> siteCollectionLocs, SiteCollectionCommand command)
     : base(parent)
 {
     this.siteCollectionLocs = siteCollectionLocs;
     this.command = command;
 }
예제 #7
0
            public static Command CreateActivatorCommand(InstallProcessControl parent, InstallOperation operation)
            {
                FeaturesCommand cmd = new FeaturesCommand(parent, FeatureActivator.ActivationDirection.Activate, operation);

                return(cmd);
            }
예제 #8
0
 internal WebFeatureCommand(InstallProcessControl parent, IList <WebLoc> webLocs, WebCommand command)
     : base(parent)
 {
     this.webLocs = webLocs;
     this.command = command;
 }
예제 #9
0
 internal DeactivateWebFeatureCommand(InstallProcessControl parent, IList <WebLoc> webLocs)
     : base(parent, webLocs, WebCommand.Deactivate)
 {
 }
예제 #10
0
 internal SiteCollectionFeatureCommand(InstallProcessControl parent, IList <SiteLoc> siteCollectionLocs, SiteCollectionCommand command)
     : base(parent)
 {
     this.siteCollectionLocs = siteCollectionLocs;
     this.command            = command;
 }
예제 #11
0
 internal DeactivateSiteCollectionFeatureCommand(InstallProcessControl parent, IList <SiteLoc> siteCollectionLocs)
     : base(parent, siteCollectionLocs, SiteCollectionCommand.Deactivate)
 {
 }
예제 #12
0
 protected FeatureCommand(InstallProcessControl parent) : base(parent)
 {
 }
 internal ActivateSiteCollectionFeatureCommand(InstallProcessControl parent, IList<SiteLoc> siteCollectionLocs)
     : base(parent, siteCollectionLocs, SiteCollectionCommand.Activate)
 {
 }
예제 #14
0
 internal ActivateFarmFeatureCommand(InstallProcessControl parent) : base(parent)
 {
 }
 public static Command CreateDeactivatorCommand(InstallProcessControl parent, InstallOperation operation)
 {
     FeaturesCommand cmd = new FeaturesCommand(parent, FeatureActivator.ActivationDirection.Deactivate, operation);
     return cmd;
 }
 internal ActivateFarmFeatureCommand(InstallProcessControl parent)
     : base(parent)
 {
 }
 private FeaturesCommand(InstallProcessControl parent, FeatureActivator.ActivationDirection direction, InstallOperation operation)
     : base(parent)
 {
     this.direction = direction;
     this.operation = operation;
     requestedLocs = InstallProcessControl.GetFeaturedLocations(operation);
 }
 protected FeatureCommand(InstallProcessControl parent)
     : base(parent)
 {
 }
 internal DeactivateWebFeatureCommand(InstallProcessControl parent, IList<WebLoc> webLocs)
     : base(parent, webLocs, WebCommand.Deactivate)
 {
 }
 internal WebFeatureCommand(InstallProcessControl parent, IList<WebLoc> webLocs, WebCommand command)
     : base(parent)
 {
     this.webLocs = webLocs;
     this.command = command;
 }
예제 #21
0
        private void ReportActivations()
        {
            FeatureLocations flocs = InstallProcessControl.GetFeaturedLocations(myOperation);

            myList.View = View.Details;
            myList.Columns.Clear();
            myList.Columns.Add("Scope", 50);
            myList.Columns.Add("WebApp", 100);
            myList.Columns.Add("Site", 100);
            myList.Columns.Add("Web", 100);
            if (InstallConfiguration.FeatureIdList.Count > 1)
            {
                myList.Columns.Add("#Features", 30);
            }
            // Farm
            foreach (FeatureLoc floc in flocs.FarmLocations)
            {
                AddLocationItemToDisplay(SPFeatureScope.Farm, "", "", "", floc.featureList.Count);
            }
            // Web Application
            foreach (FeatureLoc floc in flocs.WebAppLocations)
            {
                SPWebApplication webapp = GetWebAppById(floc.WebAppId);
                if (webapp == null)
                {
                    continue;
                }
                AddLocationItemToDisplay(SPFeatureScope.WebApplication
                                         , GetWebAppName(webapp), "", "", floc.featureList.Count);
            }
            // Site Collection
            foreach (FeatureLoc floc in flocs.SiteLocations)
            {
                SPSite site = new SPSite(floc.SiteId);
                if (site == null)
                {
                    continue;
                }
                try
                {
                    AddLocationItemToDisplay(SPFeatureScope.Site
                                             , GetWebAppName(site.WebApplication), site.RootWeb.Title
                                             , "", floc.featureList.Count);
                }
                finally
                {
                    site.Dispose();
                }
            }
            // Web
            foreach (FeatureLoc floc in flocs.WebLocations)
            {
                SPSite site = new SPSite(floc.SiteId);
                if (site == null)
                {
                    continue;
                }
                try
                {
                    SPWeb web = site.OpenWeb(floc.WebId);
                    if (web == null)
                    {
                        continue;
                    }
                    try
                    {
                        AddLocationItemToDisplay(SPFeatureScope.Web
                                                 , GetWebAppName(web.Site.WebApplication), web.Site.RootWeb.Title
                                                 , web.Title, floc.featureList.Count);
                    }
                    finally
                    {
                        web.Dispose();
                    }
                }
                finally
                {
                    site.Dispose();
                }
            }
        }