1234567891011121314151617181920212223 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace InABox.Core.DigitalForms.NewLayout
- {
- public class FormLayout
- {
- public FormControlGrid Grid { get; set; } = new FormControlGrid();
- private Dictionary<Guid, FormControl> Controls { get; set; } = new Dictionary<Guid, FormControl>();
- public FormControl? GetControl(Guid id)
- {
- return Controls.GetValueOrDefault(id);
- }
- public void AddControl(FormControl control)
- {
- Controls.Add(control.ID, control);
- }
- }
- }
|