FormLayout.cs 583 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace InABox.Core.DigitalForms.NewLayout
  5. {
  6. public class FormLayout
  7. {
  8. public FormControlGrid Grid { get; set; } = new FormControlGrid();
  9. private Dictionary<Guid, FormControl> Controls { get; set; } = new Dictionary<Guid, FormControl>();
  10. public FormControl? GetControl(Guid id)
  11. {
  12. return Controls.GetValueOrDefault(id);
  13. }
  14. public void AddControl(FormControl control)
  15. {
  16. Controls.Add(control.ID, control);
  17. }
  18. }
  19. }