when do I also need to declare a variable e.g. private Brush upBrush = Brushes.Blue;
that is already declared as a property e.g.
[XmlIgnore()]
[Display(Name = "Up color", Description = "Up color for price bars.", GroupName = "Bar Colors", Order = 1)]
public Brush UpBrush
{
get { return upBrush; }
set { upBrush = value; }
}
[Browsable(false)]
public string upBrushSerialize
{
get { return Serialize.BrushToString(upBrush); }
set { upBrush = Serialize.StringToBrush(value); }
}

Comment