Boards: Creation and accessing.

This commit is contained in:
2015-07-29 16:44:54 +02:00
parent 45f0018512
commit f088f80cb0
6 changed files with 309 additions and 4 deletions

View File

@@ -6,6 +6,22 @@ namespace VAR.Focus.Web.Pages
{
public class FormUtils
{
public static Control CreatePanel(Control ctrl, string cssClass)
{
Panel pnl = new Panel();
pnl.Controls.Add(ctrl);
if (string.IsNullOrEmpty(cssClass) == false)
{
pnl.CssClass = cssClass;
}
return pnl;
}
public static Control CreatePanel(Control ctrl)
{
return CreatePanel(ctrl, null);
}
public static Control CreateField(string label, Control fieldControl)
{
Panel pnlRow = new Panel();