This is the code I am using in Ninja 7
internal class CLM : StringConverter
{
public override bool GetStandardValuesSupported(ITypeDescriptorContext itdc) {return true;}
public override bool GetStandardValuesExclusive(ITypeDescriptorContext itdc) {return true;}
public override System.ComponentModel.TypeConverter.StandardValuesCollection GetStandardValues(ITypeDescriptorContext itdc)
{
return(new StandardValuesCollection(new String[] {"XC", "XA"}));
}
}
private int clm = -1;
private string cyphIGL = "XC";
[Description("")]
[GridCategory("10 - Manual Drawing Parameters")]
[Gui.Design.DisplayName ("2-2: Inverted Graystone Leg")]
[TypeConverter(typeof(CLM))]
public string Clm
{
get { return cyphIGL; }
set { cyphIGL = value; }
}
[NinjaScriptProperty]
[Display(Name="Drawn Cypher: Stoploss Type", Description="Manual Drawn Cypher: Stoploss Type", Order=13, GroupName="10) Manual Drawing Inputs")]
[TypeConverter(typeof(SLT))]
public string cslt
{ get; set; }

Comment