mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 19:10:23 -10:00
* Control.cs: control cache must be filled using the local _controls collection instead of the virtual Controls property. Fixes bug #594238 Check if _controls isn't null before using it. 2010-04-07 Marek Habersack <[email protected]> * ControlTest.cs: added test for bug #594238 2010-04-07 Marek Habersack <[email protected]> * Makefile: moved App_* test resources to separate variables - whatever is contained in those variables is preprocessed before embedding as resource to include appropriate resource name prefix (App_Code/, App_GlobalResources/ for now). This is used in WebTest to automatically populate the relevant directories when running the test suite. 2010-04-07 Marek Habersack <[email protected]> * WebTest.cs: introduced concept of prefixed resources and added an API which handles them - CopyPrefixedResources. All the manifest resource names are checked for match with the given prefix, and all the matching ones are copied to the specified subdirectory of the test directory. svn path=/trunk/mcs/; revision=154948
37 lines
676 B
C#
37 lines
676 B
C#
// Bug #594238
|
|
using System;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace TestNamedHolders
|
|
{
|
|
public class MyContainer : WebControl, INamingContainer
|
|
{
|
|
Control whereTheChildrenPlay;
|
|
|
|
// can't do this if it is an INamingContainer
|
|
public override ControlCollection Controls
|
|
{
|
|
get { return whereTheChildrenPlay.Controls; }
|
|
}
|
|
|
|
public MyContainer()
|
|
{
|
|
whereTheChildrenPlay = new Content();
|
|
whereTheChildrenPlay.ID = "children";
|
|
}
|
|
|
|
protected override void OnLoad (EventArgs e)
|
|
{
|
|
base.OnLoad (e);
|
|
|
|
// would normally put other stuff here
|
|
|
|
base.Controls.Add(whereTheChildrenPlay);
|
|
|
|
// and possibly here
|
|
}
|
|
|
|
}
|
|
}
|