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