private void UpdateTabs() { ViewChooserRow CurRow; int i; for (i = 0; i < pTabs.Count; i++) { if (i >= pRows.Count) { CurRow = new ViewChooserRow(); CurRow.CtrlClick += new EventHandler(Row_CtrlClick); this.Controls.Add(CurRow); pRows.Add(CurRow); } else { CurRow = pRows[i]; } CurRow.Text = pTabs[i]; CurRow.Visible = true; CurRow.BackColor = this.BackColor; } for (int j = i; j < pRows.Count; j++) { pRows.RemoveAt(pRows.Count - 1); } }
public void Add(ViewChooserRow NewItem) { base.Add(NewItem); }