Inheritance: IComparable
Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
		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();
		}
Ejemplo n.º 4
0
		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;
		}
Ejemplo n.º 5
0
		public StrProperty(object name,object[] index, PropertyInfo property,StrProperty nested,string helpText)
			:this(name,index,property,nested,helpText,false){}
Ejemplo n.º 6
0
		public StrProperty(object name,object[] index, PropertyInfo property,StrProperty nested,bool selectable)
			:this(name,index,property,nested,null,selectable){}
Ejemplo n.º 7
0
		public StrProperty(object name,object[] index, PropertyInfo property,StrProperty nested)
			:this(name,index,property,nested,null){}
Ejemplo n.º 8
0
		public StrProperty(object name, PropertyInfo property,StrProperty nested,bool selectable)
			:this(name,null,property,nested,selectable){}
Ejemplo n.º 9
0
		public StrProperty(object name, PropertyInfo property,StrProperty nested)
			:this(name,null,property,nested,false){}
Ejemplo n.º 10
0
 public StrProperty(object name, object[] index, PropertyInfo property, StrProperty nested, string helpText)
     : this(name, index, property, nested, helpText, false)
 {
 }
Ejemplo n.º 11
0
 public StrProperty(object name, object[] index, PropertyInfo property, StrProperty nested, bool selectable)
     : this(name, index, property, nested, null, selectable)
 {
 }
Ejemplo n.º 12
0
 public StrProperty(object name, object[] index, PropertyInfo property, StrProperty nested)
     : this(name, index, property, nested, null)
 {
 }
Ejemplo n.º 13
0
 public StrProperty(object name, PropertyInfo property, StrProperty nested, bool selectable)
     : this(name, null, property, nested, selectable)
 {
 }
Ejemplo n.º 14
0
 public StrProperty(object name, PropertyInfo property, StrProperty nested)
     : this(name, null, property, nested, false)
 {
 }