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

            int item = 0;

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

            _SelectedResearchItem        = WorldWorker.CreateNewResearchItem(item);
            researchItemGrid.DataContext = _SelectedResearchItem;
        }