public void PrintEncounter() { List <Models.MonsterPrintModel> l = new List <Models.MonsterPrintModel>(); foreach (Models.MonsterModel m in EncounterMonsters) { l.AddRange(m.GetPrintMonster()); } IVG.Strike.EncounterBuilderWPF.Views.MonsterPrintPreview mpv = new EncounterBuilderWPF.Views.MonsterPrintPreview(l); mpv.Owner = (Window)this.GetView(); mpv.ShowDialog(); }
public void PrintEncounter() { List <Models.MonsterPrintModel> l = new List <Models.MonsterPrintModel>(); //Models.MonsterModel m = Monsters.FirstOrDefault(p => p.Name == "Plague Thrower"); //m.Traits.Add(Traits.FirstOrDefault(p => p.Name == "Immune")); //m = Monsters.FirstOrDefault(p => p.Name == "Necrotic Wasp Swarm"); //m.Traits.Add(Traits.FirstOrDefault(p => p.Name == "Delayed Initiative")); //m.Traits.Add(Traits.FirstOrDefault(p => p.Name == "Mob")); //m.Traits.Add(Traits.FirstOrDefault(p => p.Name == "Short Reach")); //m.Traits.Add(Traits.FirstOrDefault(p => p.Name == "Natural Flyer")); foreach (Models.MonsterModel m in Monsters) { l.AddRange(m.GetPrintMonster()); } IVG.Strike.EncounterBuilderWPF.Views.MonsterPrintPreview mpv = new EncounterBuilderWPF.Views.MonsterPrintPreview(l); mpv.Owner = (Window)this.GetView(); mpv.ShowDialog(); }