public virtual void Insert(int index, CustomViewButton button) { if (Contains(button)) { return; } List.Insert(index, button); }
public virtual int Add(CustomViewButton button) { int res = IndexOf(button); if (res == -1) { res = List.Add(button); } return(res); }
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)); } } }
public CustomButtonEventsArgs(CustomViewButton paramButton) { this.protCustomButton = paramButton; }
public virtual bool Contains(CustomViewButton button) { return(List.Contains(button)); }
public virtual int IndexOf(CustomViewButton button) { return(List.IndexOf(button)); }