예제 #1
0
        private void ProjectItemPropertiesRequested(object sender,
                                                    SharePointProjectItemPropertiesRequestedEventArgs e)
        {
            CustomActionProperties properties;

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

            e.PropertySources.Add(properties);
        }
예제 #2
0
        private void ProjectItemPropertiesRequested(object sender,
                                                    SharePointProjectItemPropertiesRequestedEventArgs e)
        {
            CustomActionProperties properties;

            // 如果项目对象已经存在,请从项目项的注释获取它。
            if (!e.ProjectItem.Annotations.TryGetValue(out properties))
            {
                // 否则,请创建一个新的属性对象,并将其添加到注释。
                properties = new CustomActionProperties(e.ProjectItem);
                e.ProjectItem.Annotations.Add(properties);
            }

            e.PropertySources.Add(properties);
        }
예제 #3
0
        private void ProjectItemPropertiesRequested(object sender,
            SharePointProjectItemPropertiesRequestedEventArgs e)
        {
            CustomActionProperties properties;

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

            e.PropertySources.Add(properties);
        }
예제 #4
0
        private void ProjectItemPropertiesRequested(object sender,
            SharePointProjectItemPropertiesRequestedEventArgs e)
        {
            CustomActionProperties properties;

            // 如果项目对象已经存在,请从项目项的注释获取它。
            if (!e.ProjectItem.Annotations.TryGetValue(out properties))
            {
                // 否则,请创建一个新的属性对象,并将其添加到注释。
                properties = new CustomActionProperties(e.ProjectItem);
                e.ProjectItem.Annotations.Add(properties);
            }

            e.PropertySources.Add(properties);
        }