public StrProperty(object name, object[] index, PropertyInfo property, StrProperty nested, string helpText, bool selectable) { this.name = name; Index = index; Property = property; Nested = nested; HelpText = helpText; this.selectable = selectable; }
public void ToggleSelected(bool isSelected, object selObj) { if (!selectable) { return; } StrProperty.selObject = selObj; if (cursorTimer == null) { cursorTimer = new Timer(); cursorTimer.Interval = 500; } if (selProperty != null) { cursorTimer.Tick -= new EventHandler(selProperty.timerTick); selProperty.addText = ""; } cursorTimer.Tick += new EventHandler(timerTick); selProperty = this; if (isSelected && !timerStarted) { cursorTimer.Start(); timerStarted = true; addText = "|"; } else if (!isSelected && timerStarted) { //cursorTimer.Tick-=new EventHandler(timerTick); cursorTimer.Stop(); timerStarted = false; addText = ""; } if (Update != null) { Update(); } }
public StrProperty(object name, PropertyInfo property, StrProperty nested, bool selectable) : this(name, null, property, nested, selectable) { }
public StrProperty(object name, PropertyInfo property, StrProperty nested) : this(name, null, property, nested, false) { }
public StrProperty(object name, object[] index, PropertyInfo property, StrProperty nested, string helpText) : this(name, index, property, nested, helpText, false) { }
public StrProperty(object name, object[] index, PropertyInfo property, StrProperty nested) : this(name, index, property, nested, null) { }
public StrProperty(object name, object[] index, PropertyInfo property, StrProperty nested, bool selectable) : this(name, index, property, nested, null, selectable) { }
public StrProperty(object name,object[] index, PropertyInfo property,StrProperty nested,string helpText,bool selectable) { this.name=name; Index=index; Property=property; Nested=nested; HelpText=helpText; this.selectable=selectable; }
public void ToggleSelected(bool isSelected,object selObj) { if(!selectable) return; StrProperty.selObject=selObj; if(cursorTimer==null) { cursorTimer=new Timer(); cursorTimer.Interval=500; } if(selProperty!=null) { cursorTimer.Tick-=new EventHandler(selProperty.timerTick); selProperty.addText=""; } cursorTimer.Tick+=new EventHandler(timerTick); selProperty=this; if(isSelected && !timerStarted) { cursorTimer.Start(); timerStarted=true; addText="|"; } else if(!isSelected && timerStarted) { //cursorTimer.Tick-=new EventHandler(timerTick); cursorTimer.Stop(); timerStarted=false; addText=""; } if(Update!=null) Update(); }
public StrProperty(object name,object[] index, PropertyInfo property,StrProperty nested,string helpText) :this(name,index,property,nested,helpText,false){}
public StrProperty(object name,object[] index, PropertyInfo property,StrProperty nested,bool selectable) :this(name,index,property,nested,null,selectable){}
public StrProperty(object name,object[] index, PropertyInfo property,StrProperty nested) :this(name,index,property,nested,null){}
public StrProperty(object name, PropertyInfo property,StrProperty nested,bool selectable) :this(name,null,property,nested,selectable){}
public StrProperty(object name, PropertyInfo property,StrProperty nested) :this(name,null,property,nested,false){}