public void AppendAContent(TKodUS kodUs) { var aContent = new GroupBox(0, _document.Width, Resources.ContainerTitleA); aContent.AddChild(new InputBox(new XRect(0, 0, _document.Width, 30)) { Title = Resources.InputTitle7, Value = KodUSDictionary.GetCode(kodUs), }); _document.AddContainer(aContent); }
public void AddChildTest() { var rect = new XRect(); var target = new GroupBox(rect); IControl control = new Label(0, 0, "foo"); target.AddChild(control); Assert.AreEqual(target.Controls.Count, 1); }