Example #1
0
			/// <summary>
			/// Append the specified setter to your list, making a prop setter that will set all the indicated properties.
			/// </summary>
			public void AppendProp(PropSetter props)
			{
				if (m_fHasBeenUsed)
					throw new ArgumentException("Cannot append to a PropSettings that has been used to make an assembled styles");
				if (m_next == null)
					m_next = (PropSetterImpl) props;
				else
					m_next.AppendProp(props); // Put it on the end of the chain so this one happens first
			}
Example #2
0
			static internal PropSetterImpl BuildChain(PropSetterImpl start, PropSetterImpl add)
			{
				if (start == null)
					return add; // it becomes the whole chain
				start.AppendProp(add);
				return start;
			}