示例#1
0
        private void DataListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListViewTemplate view = (ListViewTemplate)DataListBox.SelectedItem;

            if (view == null)
            {
                return;
            }

            propertyGrid.SelectedObject = view;
        }
示例#2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ExpBuilder.GetData();

            for (int i = 0; i < ExpBuilder.PlayerExperience.Count; i++)
            {
                ListViewTemplate template = new ListViewTemplate()
                {
                    Level = i,
                    exp   = ExpBuilder.PlayerExperience[i]
                };

                _lists.Add(template);
            }

            DataListBox.ItemsSource = _lists;
        }
示例#3
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            ExpBuilder.GetData();

            for (int i = 0; i < ExpBuilder.PlayerExperience.Count; i++)
            {
                ListViewTemplate template = new ListViewTemplate()
                {
                    Level = i,
                    exp = ExpBuilder.PlayerExperience[i]
                };

                _lists.Add(template);
            }

            DataListBox.ItemsSource = _lists;
        }