2 using System.Collections.Generic;
8 namespace MonoTests.Common
10 class AFieldTemplate : ITemplate
12 public List <Control> Controls { get; private set; }
14 public AFieldTemplate ()
16 Controls = new List<Control> ();
19 public void InstantiateIn (Control container)
21 if (container == null)
24 List <Control> controls = Controls;
25 if (controls.Count == 0)
28 foreach (Control c in controls)
29 container.Controls.Add (c);