Inheritance: System.Windows.Forms.Control
        public void SelectItem(Compare function)
        {
            TpItem item = Find(function);

            if (item != null)
            {
                SelectItem(item, false);
            }
        }
        public void SelectItem(Object data)
        {
            TpItem item = Find(data);

            if (item != null)
            {
                SelectItem(item, false);
            }
        }
        public void SelectItem(Object data, bool supress)
        {
            TpItem item = Find(data);

            if (item != null)
            {
                SelectItem(item, supress);
            }
        }
Example #4
0
		public void Add(TpItem item)
		{
			item.Width = Width - 20;
			items.Add(item);
			item.ItemClicked += item_ItemClicked;
			if (items.Count - 6 >= 0)
				scrollBar.PositionCount = items.Count - 7;
			ReCalculate();
		}
Example #5
0
 public void Add(TpItem item)
 {
     item.Width = Width - 20;
     items.Add(item);
     item.ItemClicked += item_ItemClicked;
     if (items.Count - 6 >= 0)
     {
         scrollBar.PositionCount = items.Count - 7;
     }
     ReCalculate();
 }
		public void SelectItem(TpItem item, bool supress)
		{
			selectedItem = item;

			if (!supress)
				HideList();
			if (ValueChanged != null && !supress)
			{
				ValueChanged.Invoke(this, new EventArgs());
			}
			Invalidate();
		}
        public void SelectItem(TpItem item, bool supress)
        {
            selectedItem = item;

            if (!supress)
            {
                HideList();
            }
            if (ValueChanged != null && !supress)
            {
                ValueChanged.Invoke(this, new EventArgs());
            }
            Invalidate();
        }
        private void innerList_ItemSelected(object sender, EventArgs e)
        {
            TpItem item = sender as TpItem;

            if (item != null)
            {
                if (e != null)
                {
                    SelectItem(item);
                }
                else
                {
                    SelectItem(item, true);
                }
            }
        }
 internal void Clear()
 {
     _innerList.Clear();
     Controls.Clear();
     selectedItem = null;
 }
Example #10
0
 public void Add(TpItem item)
 {
     _innerList.Add(item);
     ReCalculate();
 }
Example #11
0
		private static bool Filter(TpItem item)
		{
			return !item.Filtered;
		}
Example #12
0
 public static int Compare(TpItem item1, TpItem item2)
 {
     return(string.Compare(((TpTextItem)item1).value, ((TpTextItem)item2).value));
 }
Example #13
0
 private static bool Filter(TpItem item)
 {
     return(!item.Filtered);
 }
		internal void Clear()
		{
			_innerList.Clear();
			Controls.Clear();
			selectedItem = null;
		}
		public void Add(TpItem item)
		{
			_innerList.Add(item);
			ReCalculate();
		}
		public static int Compare(TpItem item1, TpItem item2)
		{
			return string.Compare(((TpTextItem) item1).value, ((TpTextItem) item2).value);
		}