|
using System;
using System.Collections.Generic;
using System.Text;
using Bulasoft.Common.Elements;
using System.Drawing;
namespace ConsoleApplication1.data
{
public class Style: OwnedElement<StyleCollection>
{
private const string ColorName = "color";
private Color _color;
[Serialization(ColorName)]
public Color Color
{
get { return _color; }
set
{
if (_color != value)
{
LogChange(ColorName, _color, value);
_color = value;
}
}
}
private const string IconName = "icon";
private string _icon;
[Serialization(IconName, SerializationSettings.SerializeAsAttribute)]
public string Icon
{
get { return _icon; }
set
{
if (_icon != value)
{
LogChange(IconName, _icon, value);
_icon = value;
}
}
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.