Esempio n. 1
0
        private void editMagic(object sender, EventArgs e)
        {
            if (magicBox.SelectedItem == null)
            {
                return;
            }
            MagicProperty selected = (MagicProperty)magicBox.SelectedItem;
            MagicForm     r        = new MagicForm(selected.Clone());

            r.Saved += MagicSaved;
            r.Show();
        }
Esempio n. 2
0
        private void NewMagicProp_Click(object sender, EventArgs e)
        {
            if (magicCatBox.SelectedItem == null)
            {
                return;
            }
            MagicProperty i = new MagicProperty()
            {
                Source = Program.Context.Config.DefaultSource
            };
            string cat = (string)magicCatBox.SelectedItem;

            i.Category = cat;
            MagicForm r = new MagicForm(i);

            r.Saved += MagicSaved;
            r.Show();
        }