I am trying to create a DashStyle Enum by:
private TestRect_DashStyle myDashStyle = TestRect_DashStyle.Solid;
Properties
[NinjaScriptProperty]
[Display(ResourceType = typeof(Custom.Resource), Name = "DrawStyle", GroupName = "General")]
public DashStyleHelper MyDashStyle
{
get{return myDshStyle;}
set{myDashStyle = value;}
}
public enum TestRect_DashStyle
{
Solid,
Dash
}
set{myDashStyle = value;} is throwing error:
Cannot implicity convert 'NinjaTrader.Gui.DashStyleHelper' to TestRect_DashStyle'. An explicit conversion exist (are you missing a cast?)
What am I missing? Or is there a better way to do this.
The plan was to use it like:
MyStroke = new Stroke(Brush, MyDashStyle, MyWidth);
Thanks.
Comment