コード例 #1
0
        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();
        }
コード例 #2
0
        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();
        }