public void UpdateActor(Model.Actor updatedActor)
 {
     foreach (InitiativeCardViewModel initCard in InitiativeTrack)
     {
         if (initCard.ActorViewModel.Actor.ActorName == updatedActor.ActorName &&
             initCard.ActorViewModel.Actor.GetType() == updatedActor.GetType())
         {
             if (initCard.ActorViewModel is PlayerActorInitiativeViewModel)
             {
                 PlayerActorInitiativeViewModel newViewModel = new PlayerActorInitiativeViewModel(updatedActor as Model.PlayerActor);
                 newViewModel.DisplayName = initCard.ActorViewModel.DisplayName;
                 (initCard as PlayerActorInitiativeCardViewModel).ActorViewModel = newViewModel;
             }
         }
     }
 }
 public override void ReadXML(XmlNode xmlNode, EncounterViewModel encounterViewModel = null)
 {
     base.ReadXML(xmlNode);
     try
     {
         foreach (XmlNode childNode in xmlNode.ChildNodes)
         {
             if (childNode.Name == "PlayerActorInitiativeViewModel")
             {
                 ActorViewModel = new PlayerActorInitiativeViewModel(childNode);
             }
         }
     }
     catch (XmlException e)
     {
         MessageBox.Show(e.ToString());
     }
 }