Exemplo n.º 1
0
 void projectService_ProjectPropertiesRequested(object sender, SharePointProjectPropertiesRequestedEventArgs e)
 {
     if (!e.Project.IsSandboxedSolution)
     {
         e.PropertySources.Add(new PropertySource(e.Project));
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Handles the ProjectPropertiesRequested event of the projectService control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="SharePointProjectPropertiesRequestedEventArgs" /> instance containing the event data.</param>
 void projectService_ProjectPropertiesRequested(object sender, SharePointProjectPropertiesRequestedEventArgs e)
 {
     if (!e.Project.IsSandboxedSolution)
     {
         // Add new properties to the SharePoint project.
         e.PropertySources.Add((object)new AutoCopyToSharePointRootProperty(e.Project));
         e.PropertySources.Add((object)new AutoCopyAssembliesProperty(e.Project));
         e.PropertySources.Add((object)new BuildOnCopyAssembliesProperty(e.Project));
     }
 }
Exemplo n.º 3
0
        void projectService_ProjectPropertiesRequested(object sender, SharePointProjectPropertiesRequestedEventArgs e)
        {
            CustomProjectProperties propertiesObject;

            // If the properties object already exists, get it from the project's annotations.
            if (!e.Project.Annotations.TryGetValue(out propertiesObject))
            {
                // Otherwise, create a new properties object and add it to the annotations.
                propertiesObject = new CustomProjectProperties(e.Project);
                e.Project.Annotations.Add(propertiesObject);
            }

            e.PropertySources.Add(propertiesObject);
        }
Exemplo n.º 4
0
 void projectService_ProjectPropertiesRequested(object sender, SharePointProjectPropertiesRequestedEventArgs e)
 {
     // Add a new property to the SharePoint project.
     e.PropertySources.Add((object)new ImagesMappedFolderProperty(e.Project));
 }