Ejemplo n.º 1
0
 internal void ClickButton(NuGenMiniBarControl btn)
 {
     if (ButtonClick != null && btn != null)
     {
         ButtonClick(this, new NuGenTargetEventArgsT <NuGenMiniBar, NuGenMiniBarControl>(this, btn));
     }
 }
		/// <summary>
		/// </summary>
		public void Add(NuGenMiniBarControl btn)
		{
			if (btn == null)
				return;
			btn.Owner = _owner;
			this.InnerList.Add(btn);
			this.UpdateOwner();
		}
 /// <summary>
 /// </summary>
 public void Add(NuGenMiniBarControl btn)
 {
     if (btn == null)
     {
         return;
     }
     btn.Owner = _owner;
     this.InnerList.Add(btn);
     this.UpdateOwner();
 }
        /// <summary>
        /// </summary>
        public void Remove(NuGenMiniBarControl ctl)
        {
            int i = this.IndexOf(ctl);

            if (i == -1)
            {
                return;
            }
            this.InnerList.RemoveAt(i);
            this.OnRemoveComplete(i, ctl);
        }
        /// <summary>
        /// </summary>
        public void Move(NuGenMiniBarControl ctl, int positions)
        {
            int i = this.InnerList.IndexOf(ctl);

            if (i == -1)
            {
                return;
            }
            this.InnerList.RemoveAt(i);
            i = Math.Max(0, Math.Min(this.InnerList.Count, i + positions));
            this.InnerList.Insert(i, ctl);
            this.UpdateOwner();
        }
		/// <summary>
		/// </summary>
		public void AddRange(NuGenMiniBarControl[] btns)
		{
			if (btns == null)
				return;
			for (int i = 0; i < btns.Length; i++)
			{
				if (btns[i] != null)
				{
					btns[i].Owner = _owner;
					this.InnerList.Add(btns[i]);
				}
			}
			this.UpdateOwner();
		}
Ejemplo n.º 7
0
		internal void ClickButton(NuGenMiniBarControl btn)
		{
			if (ButtonClick != null && btn != null)
				ButtonClick(this, new NuGenTargetEventArgsT<NuGenMiniBar, NuGenMiniBarControl>(this, btn));
		}
		/// <summary>
		/// </summary>
		public void Move(NuGenMiniBarControl ctl, int positions)
		{
			int i = this.InnerList.IndexOf(ctl);
			if (i == -1)
				return;
			this.InnerList.RemoveAt(i);
			i = Math.Max(0, Math.Min(this.InnerList.Count, i + positions));
			this.InnerList.Insert(i, ctl);
			this.UpdateOwner();
		}
		/// <summary>
		/// </summary>
		public void Remove(NuGenMiniBarControl ctl)
		{
			int i = this.IndexOf(ctl);
			if (i == -1)
				return;
			this.InnerList.RemoveAt(i);
			this.OnRemoveComplete(i, ctl);
		}