Esempio n. 1
0
        vsFilterProperties IFilterProperties.IsPropertyHidden(string PropertyName)
        {
            vsFilterProperties retVal = vsFilterProperties.vsFilterPropertiesNone;

            if (PropertyName == @"CheckForOverflowUnderflow" ||
                PropertyName == @"StartProgram" ||
                PropertyName == @"StartWorkingDirectory" ||
                PropertyName == @"StartArguments" ||
                PropertyName == @"EnableUnmanagedDebugging" ||
                PropertyName == @"EnableSQLServerDebugging" ||
                PropertyName == @"FileAlignment" ||
                PropertyName == @"RegisterForComInterop" ||
                PropertyName == @"RemoteDebugEnabled" ||
                PropertyName == @"RemoteDebugMachine" ||
                PropertyName == @"NoStdLib" ||
                PropertyName == @"UseVSHostingProcess" ||
                PropertyName == @"GenerateSerializationAssemblies" ||
                PropertyName == @"TargetFrameworkSubset")
            {
                retVal = vsFilterProperties.vsFilterPropertiesAll;
            }
            else if
            (PropertyName == @"PlatformTarget")
            {
                retVal = vsFilterProperties.vsFilterPropertiesSet;
            }

            return(retVal);
        }
Esempio n. 2
0
        /// <summary>
        /// Determines whether [is property hidden] [the specified property name].
        /// </summary>
        /// <param name="PropertyName">Name of the property.</param>
        /// <returns></returns>
        public vsFilterProperties IsPropertyHidden(string PropertyName)
        {
            vsFilterProperties propertyHidden = vsFilterProperties.vsFilterPropertiesNone;

            // Si on ne trouve pas d'association, on n'affiche rien
            if (PropertyName == "CanRegenerate" && Mapper.Instance.FindMapItem(_fileName) == null)
            {
                propertyHidden = vsFilterProperties.vsFilterPropertiesAll;
            }
            return(propertyHidden);
        }
Esempio n. 3
0
        vsFilterProperties IFilterProperties.IsPropertyHidden(string PropertyName)
        {
            vsFilterProperties retVal = vsFilterProperties.vsFilterPropertiesNone;

            if (PropertyName == @"ApplicationIcon" ||
                PropertyName == @"AssemblyType" ||
                PropertyName == @"Win32ResourceFile" ||
                PropertyName == @"ComVisible" ||
                PropertyName == @"AssemblyGuid" ||
                PropertyName == @"ApplicationManifest" ||
                PropertyName == @"NoStdLib" ||
                PropertyName == @"MyApplication" ||
                PropertyName == @"EnableVisualStyles")
            {
                retVal = vsFilterProperties.vsFilterPropertiesAll;
            }
            else if (
                PropertyName == @"TargetFrameworkSubset")
            {
                retVal = vsFilterProperties.vsFilterPropertiesSet;
            }

            return(retVal);
        }
Esempio n. 4
0
        public vsFilterProperties IsPropertyHidden(string propertyName)
        {
            // By default, property is visible to property pages
            vsFilterProperties propertyHidden = vsFilterProperties.vsFilterPropertiesNone;

            if (AllPropertiesAreHidden || HiddenPropertyNames.Contains(propertyName))
            {
                // Don't hide FullPath for "all" unless explicit - too integral to the property page functionality
                if (propertyName.Equals("FullPath") && !HiddenPropertyNames.Contains("FullPath"))
                {
                }
                else
                {
                    // Property is hidden
                    propertyHidden = vsFilterProperties.vsFilterPropertiesAll;
                }
            }
            else if (AllPropertiesAreReadOnly || ReadOnlyPropertyNames.Contains(propertyName))
            {
                // Property is read-only
                propertyHidden = vsFilterProperties.vsFilterPropertiesSet;
            }
            return(propertyHidden);
        }