Beispiel #1
0
        private void createResearchSpell_Click(object sender, RoutedEventArgs e)
        {
            if (_SelectedResearchData == null)
            {
                return;
            }

            int spell = 0;

            try
            {
                spell = Convert.ToInt32(researchSpellText.Text);
            }
            catch (System.Exception /*ex*/) { }
            if (spell == 0)
            {
                return;
            }

            _SelectedResearchSpell        = WorldWorker.CreateNewResearchSpell(spell);
            researchSpellGrid.DataContext = _SelectedResearchSpell;
        }