public AddEmployeeForm() : base("AddEmployeeForm") { EmployeeName = AddTextInput(nameof(EmployeeName)); EmployeeName.MaxLength = 100; EmployeeName.SetValue(""); BirthDate = AddDateInput(nameof(BirthDate)); Department = AddInt32DropDown ( nameof(Department), new DropDownItem <int?>(1, "HR"), new DropDownItem <int?>(2, "IT") ); Department.ItemCaption = "Select..."; Department.MustNotBeNull(); Address = AddComplex(nameof(Address), (p, n) => new AddressInput(p, n)); SSN = AddInt32Input(nameof(SSN)); SSN.IsProtected = true; SSN.AddConstraints(Int32RangeConstraint.FromAbove(0).ToBelow(1000000000)); HireDate = AddDateDropDown ( nameof(HireDate), new DropDownItem <DateTimeOffset?>(DateTimeOffset.Now.Date.AddDays(-1), "Yesterday"), new DropDownItem <DateTimeOffset?>(DateTimeOffset.Now.Date, "Today"), new DropDownItem <DateTimeOffset?>(DateTimeOffset.Now.Date.AddDays(1), "Tomorrow") ); IsTemp = AddBooleanDropDown(nameof(IsTemp)); EmployeeID = AddInt32Hidden(nameof(EmployeeID), 32); }