public void LoadSettings(NUnit.Util.ISettings settings)
        {
            this.settings = settings;

            TabInfoCollection info    = new TabInfoCollection();
            string            tabList = (string)settings.GetSetting(Prefix + "TabList");

            if (tabList != null)
            {
                string[] tabNames = tabList.Split(new char[] { ',' });
                foreach (string name in tabNames)
                {
                    string prefix = Prefix + name;
                    string text   = (string)settings.GetSetting(prefix + ".Title");
                    if (text == null)
                    {
                        break;
                    }

                    TabInfo tab = new TabInfo(name, text);
                    tab.Content = (TextDisplayContent)settings.GetSetting(prefix + ".Content", TextDisplayContent.Empty);
                    tab.Enabled = settings.GetSetting(prefix + ".Enabled", true);
                    info.Add(tab);
                }
            }

            if (info.Count > 0)
            {
                tabInfo = info;
            }
            else
            {
                LoadDefaults();
            }
        }
		public void LoadSettings(NUnit.Util.ISettings settings)
		{
			this.settings = settings;

			TabInfoCollection info = new TabInfoCollection();
			string tabList = (string)settings.GetSetting( Prefix + "TabList" );

			if ( tabList != null ) 
			{
				string[] tabNames = tabList.Split( new char[] { ',' } );
				foreach( string name in tabNames )
				{
					string prefix = Prefix + name;
					string text = (string)settings.GetSetting(prefix + ".Title");
					if ( text == null )
						break;

					TabInfo tab = new TabInfo( name, text );
					tab.Content = (TextDisplayContent)settings.GetSetting(prefix + ".Content", TextDisplayContent.Empty );
					tab.Enabled = settings.GetSetting( prefix + ".Enabled", true );
					info.Add( tab );
				}
			}

			if ( info.Count > 0 )		
				tabInfo = info;
			else 
				LoadDefaults();
		}