InitializeDetailProperty() private method

private InitializeDetailProperty ( ProfilerProperty source ) : void
source ProfilerProperty
return void
コード例 #1
0
        public ProfilerProperty GetDetailedProperty()
        {
            ProfilerProperty rootProfilerProperty = this.m_Window.GetRootProfilerProperty(this.sortType);
            bool             enterChildren        = true;
            string           selectedPropertyPath = ProfilerDriver.selectedPropertyPath;
            ProfilerProperty result;

            while (rootProfilerProperty.Next(enterChildren))
            {
                string propertyPath = rootProfilerProperty.propertyPath;
                if (propertyPath == selectedPropertyPath)
                {
                    ProfilerProperty profilerProperty = new ProfilerProperty();
                    profilerProperty.InitializeDetailProperty(rootProfilerProperty);
                    result = profilerProperty;
                    return(result);
                }
                if (rootProfilerProperty.HasChildren)
                {
                    enterChildren = this.IsExpanded(propertyPath);
                }
            }
            result = null;
            return(result);
        }
コード例 #2
0
        public ProfilerProperty GetDetailedProperty(ProfilerProperty property)
        {
            bool   enterChildren        = true;
            string selectedPropertyPath = ProfilerDriver.selectedPropertyPath;

            while (property.Next(enterChildren))
            {
                string propertyPath = property.propertyPath;
                if (propertyPath == selectedPropertyPath)
                {
                    ProfilerProperty profilerProperty = new ProfilerProperty();
                    profilerProperty.InitializeDetailProperty(property);
                    return(profilerProperty);
                }
                if (property.HasChildren)
                {
                    enterChildren = this.IsExpanded(propertyPath);
                }
            }
            return(null);
        }
コード例 #3
0
		public ProfilerProperty GetDetailedProperty(ProfilerProperty property)
		{
			bool enterChildren = true;
			string selectedPropertyPath = ProfilerDriver.selectedPropertyPath;
			while (property.Next(enterChildren))
			{
				string propertyPath = property.propertyPath;
				if (propertyPath == selectedPropertyPath)
				{
					ProfilerProperty profilerProperty = new ProfilerProperty();
					profilerProperty.InitializeDetailProperty(property);
					return profilerProperty;
				}
				if (property.HasChildren)
				{
					enterChildren = this.IsExpanded(propertyPath);
				}
			}
			return null;
		}