/// <summary>
/// DefaultTextColor
/// </summary>
/// <returns>Color</returns>
[XmlIgnore]
[Description("Set the default text color. Default: Black")]
[Category("Design Layer")]
[NinjaTrader.Gui.Design.DisplayName("Default Text Color")]
public Color DefaultTextColor
{
get { return defaultTextColor; }
set { defaultTextColor = value; }
}
[Browsable(false)]
public string DefaultTextColorSerialize
{
get { return NinjaTrader.Gui.Design.SerializableColor.ToString( defaultTextColor); }
set { defaultTextColor = NinjaTrader.Gui.Design.SerializableColor.FromStrin g(value); }
}
...I've done this with Fonts as well, however, when it comes to Booleans, I can't figure out the correct syntax, as intellisense doesn't really "hint" anything. I was looking for something like:
NinjaTrader.Gui.Design.SerializableBoolean.ToStrin g(blah)...
how does one serialize a boolean? and for that matter, Pens, etc
Comment