Beispiel #1
0
        // Uncomment the method below to handle the event raised after a feature has been activated.

        public override void FeatureActivated(SPFeatureReceiverProperties properties)
        {
            ArtDevFeature feature = new ArtDevFeature(properties);

            feature.ActivateMasterPage("/_catalogs/masterpage/ArtDev.master");
            feature.Web().ApplyTheme("/_catalogs/theme/15/ArtDev.spcolor", "", "", true);
        }
Beispiel #2
0
        // Uncomment the method below to handle the event raised before a feature is deactivated.

        public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
        {
            ArtDevFeature feature = new ArtDevFeature(properties);

            feature.ActivateMasterPage("/_catalogs/masterpage/seattle.master");
        }