mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 01:41:17 -10:00
* Added some resources to WebPages - a test web page for DynamicControlTest and the required DynamicData scaffolding. 2009-07-03 Marek Habersack <[email protected]> * Makefile: added more resources to the test assembly 2009-07-03 Marek Habersack <[email protected]> * DynamicControlTest.cs: added 2009-07-03 Marek Habersack <[email protected]> * DynamicDataContainerModelProvider.cs, DynamicDataContainerTableProvider.cs: are generic classes now. 2009-07-03 Marek Habersack <[email protected]> * IDynamicDataContainer.cs: became a generic interface. * DynamicDataSource.cs; some reformatting. DynamicDataSourceView is a generic class now. * DynamicDataContainer.cs: IDynamicDataContainer is a generic interface now. 2009-07-03 Marek Habersack <[email protected]> * TestsSetup.cs: custom WebTest setup for DynamicData * TestsBasePage.cs: a base class for all the web pages used by the tests. * MiscExtensions.cs: added some helper extensions for fishing out controls from control trees. * ITestDataContext.cs: GetTableData gets full set of query arguments. 2009-07-03 Marek Habersack <[email protected]> * AssemblyInfo.cs: added. Necessary, because we need to set up WebTest environment and it is done via an assembly-level custom attribute. svn path=/trunk/mcs/; revision=137369
33 lines
570 B
C#
33 lines
570 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
|
|
namespace MonoTests.Common
|
|
{
|
|
class AFieldTemplate : ITemplate
|
|
{
|
|
public List <Control> Controls { get; private set; }
|
|
|
|
public AFieldTemplate ()
|
|
{
|
|
Controls = new List<Control> ();
|
|
}
|
|
|
|
public void InstantiateIn (Control container)
|
|
{
|
|
if (container == null)
|
|
return;
|
|
|
|
List <Control> controls = Controls;
|
|
if (controls.Count == 0)
|
|
return;
|
|
|
|
foreach (Control c in controls)
|
|
container.Controls.Add (c);
|
|
}
|
|
}
|
|
}
|