コード例 #1
0
        public ItemManager(ref DBlist DB)
        {
            _DB = DB;
            InitializeComponent();

            DataContext = now_item;

            InitUIsetting();
            now_DB = SelectedItemType();
            InitializeContents();
            BindingItemList        = new ItemListBox(ref now_DB);
            DB_ListBox.ItemsSource = BindingItemList;

            SetComboBox();
        }
コード例 #2
0
        private void cmb_item_type_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            now_DB = SelectedItemType();
            if (now_DB == null)
            {
                return;
            }
            else
            {
                SetSelectedItemTypeUI();
            }

            InitializeContents();
            BindingItemList        = new ItemListBox(ref now_DB);
            DB_ListBox.ItemsSource = BindingItemList;
            SetNowItemOption();
        }