コード例 #1
0
 public virtual void Insert(int index, CustomViewButton button)
 {
     if (Contains(button))
     {
         return;
     }
     List.Insert(index, button);
 }
コード例 #2
0
        public virtual int Add(CustomViewButton button)
        {
            int res = IndexOf(button);

            if (res == -1)
            {
                res = List.Add(button);
            }
            return(res);
        }
コード例 #3
0
 public void CheckForCustomButtonClick(int iButtonHashCode)
 {
     for (int i = 0; i < Count; i++)
     {
         CustomViewButton item = this[i];
         if (item.GetHashCode() == iButtonHashCode && OnCustomButtonClick != null)
         {
             OnCustomButtonClick(this, new CustomButtonEventsArgs(item as CustomViewButton));
         }
     }
 }
コード例 #4
0
 public CustomButtonEventsArgs(CustomViewButton paramButton)
 {
     this.protCustomButton = paramButton;
 }
コード例 #5
0
 public virtual bool Contains(CustomViewButton button)
 {
     return(List.Contains(button));
 }
コード例 #6
0
 public virtual int IndexOf(CustomViewButton button)
 {
     return(List.IndexOf(button));
 }