public void OnNecromancerPhaseComplete(NecromancerActivationViewModel sender) { foreach (var spawnLocation in sender.Locations) { var locationRow = Locations.Single (l => l.Location.Id == spawnLocation.Location.Id); foreach (var spawn in spawnLocation.Spawns.Where(x=> x is BlightViewModel)) locationRow.AddBlightViewModel (spawn as BlightViewModel); } }
public void OnNecromancerPhaseComplete(NecromancerActivationViewModel sender) { //TODO: only add the new rows //var models = Application.CurrentGame.Locations.Select (l => new LocationViewModel (this, l)); //LocationSections.Clear (); //foreach(var model in models) // LocationSections.Add(model); }
public void OnNecromancerPhaseComplete(NecromancerActivationViewModel sender) { RaisePropertyChanged (() => Darkness); }