Ejemplo n.º 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            MonsterForm r = new MonsterForm(new Monster()
            {
                Source = Program.Context.Config.DefaultSource
            });

            r.Saved += MonsterSaved;
            r.Show();
        }
Ejemplo n.º 2
0
        private void editMonster(object sender, EventArgs e)
        {
            if (monsterbox.SelectedItem == null)
            {
                return;
            }
            Monster selected = Program.Context.GetMonster((string)monsterbox.SelectedItem, null);

            if (selected != null)
            {
                string      sel = selected.Name;
                MonsterForm r   = new MonsterForm(selected.Clone());
                r.Saved += MonsterSaved;
                r.Show();
            }
        }