Ejemplo n.º 1
0
        public UserPinGroup(UserEncounter encounter, PinGroup pinGroup, PinGroupStatus status)
        {
            Encounter = encounter;
            Data      = pinGroup;
            Status    = status;

            if (pinGroup.ReadMore != null)
            {
                ReadMorePin = new UserReadMorePin(Encounter, Data.ReadMore, Status.ReadMoreStatus);
                ReadMorePin.StatusChanged += UpdateIsRead;
            }
            if (pinGroup.Dialogue != null)
            {
                DialoguePin = new UserDialoguePin(Encounter, Data.Dialogue, Status.DialogueStatus);
                DialoguePin.StatusChanged += UpdateIsRead;
            }
            if (pinGroup.Quiz != null)
            {
                QuizPin = new UserQuizPin(Encounter, Data.Quiz, Status.QuizStatus);
                QuizPin.StatusChanged += UpdateIsRead;
            }
        }
 public abstract void Display(PinGroup pinData);