示例#1
0
		/// <summary>
		/// Reads a color from an XML reader at a color tag.
		/// </summary>
		/// <param name="reader"> A <see cref="XmlReader"/> at a color tag. </param>
		protected virtual void ReadColor(XmlReader reader)
		{
			string name = reader.GetRequiredString("name");
			
			// parse the value
			string valueString = reader.GetRequiredString("value");
			colors[name] = Color.FromString(valueString);
			colors[name].Name = name;
			
//			Console.WriteLine("read color string {0} as {1}", valueString, colors[name]);
		}