Beispiel #1
0
 /// <summary>
 /// Converts a color to a XML node.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <returns></returns>
 protected IO.XmlAttributes GetXmlFromColor(Color color)
 {
     IO.XmlAttributes attrib = new Client.Logic.IO.XmlAttributes();
     attrib.Add("A", color.A.ToString());
     attrib.Add("R", color.R.ToString());
     attrib.Add("G", color.G.ToString());
     attrib.Add("B", color.B.ToString());
     return attrib;
 }
Beispiel #2
0
 /// <summary>
 /// Converts a color to a XML node.
 /// </summary>
 /// <param name="color">The color.</param>
 /// <returns></returns>
 protected IO.XmlAttributes GetXmlFromColor(Color color)
 {
     IO.XmlAttributes attrib = new Client.Logic.IO.XmlAttributes();
     attrib.Add("A", color.A.ToString());
     attrib.Add("R", color.R.ToString());
     attrib.Add("G", color.G.ToString());
     attrib.Add("B", color.B.ToString());
     return(attrib);
 }