* TabControl.cs: Change SetTab so it adds the tabpage to the list
authorAndreia Gaita <avidigal@novell.com>
Fri, 27 Apr 2007 19:48:00 +0000 (19:48 -0000)
committerAndreia Gaita <avidigal@novell.com>
Fri, 27 Apr 2007 19:48:00 +0000 (19:48 -0000)
commit43b0daca6afbd669c8b5b677096fd705af02c1d8
treee8fdc2e5a90f998647ef824634307332ed17ba24
parente6dd2725133acd3196bd362f8a8897607028eb4a
* TabControl.cs: Change SetTab so it adds the tabpage to the list
of controls if it isn't already there - was blowing up when doing
tabcontrol.TabPages[i]=new TabPage().
SetTab now does a replace by removing the page at the index.
Add a new InsertTab method that inserts a page in a given index
instead of replacing.
Implements TabPageCollection.Insert(int, TabPage).

2007-04-27  Andreia Gaita  <avidigal@novell.com>

svn path=/trunk/mcs/; revision=76404
mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
mcs/class/Managed.Windows.Forms/System.Windows.Forms/TabControl.cs