Exemplo n.º 1
0
 protected virtual void UpdateIsRead()
 {
     if (!Status.Read && DialoguePin?.IsRead() != false && QuizPin?.IsRead() != false)
     {
         SetRead(true);
     }
 }
Exemplo n.º 2
0
        public UserDialoguePin(UserEncounter encounter, DialoguePin dialogue, DialogueStatus status)
        {
            Encounter = encounter;
            Data      = dialogue;
            Status    = status;

            foreach (var panel in Data.Conversation)
            {
                var userPanel = new UserPanel(encounter, panel.Value, status.GetPanelStatus(panel.Key));
                userPanel.StatusChanged += UpdateIsRead;
                Panels.Add(panel.Key, userPanel);
            }
        }