Пример #1
0
        private void createResearchDesc_Click(object sender, RoutedEventArgs e)
        {
            if (_SelectedResearchData == null)
            {
                return;
            }

            npc_text t = WorldWorker.CreateNewNpcText();

            _SelectedResearchData.Description = t.ID;
            researchGrid.DataContext          = _SelectedResearchData;
            _SelectedNpcText       = t;
            _SelectedBroadcastText = WorldWorker.GetBroadCastText(t.BroadcastTextID0);
            Binding binding = new Binding();

            binding.Source = _SelectedBroadcastText;
            binding.Path   = new PropertyPath("MaleText");
            descriptionText.SetBinding(TextBox.TextProperty, binding);
        }