Ejemplo n.º 1
0
        public UserPanel(UserEncounter encounter, Panel data, PanelStatus status)
        {
            Encounter = encounter;
            Data      = data;
            Status    = status;
            if (data.Pins != null && data.Pins.HasPin())
            {
                PinGroup = new UserPinGroup(encounter, data.Pins, status.PinGroupStatus);
                PinGroup.StatusChanged += UpdateIsRead;
            }

            foreach (var panel in data.ChildPanels)
            {
                var userPanel = new UserPanel(encounter, panel.Value, status.GetChildPanelStatus(panel.Key));
                userPanel.StatusChanged += UpdateIsRead;
                ChildPanels.Add(panel.Key, userPanel);
            }
        }
 public abstract void Display(UserPinGroup userPanel);