Example #1
0
        private void DB_ListBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            MonsterDB_Binding temp = (MonsterDB_Binding)DB_ListBox.SelectedItem;

            if (temp != null)
            {
                now_mob.ChangeValue(temp);
            }

            MobName.Focus();
        }
Example #2
0
        private void Add_DB_Click(object sender, RoutedEventArgs e)
        {
            if (string.Compare(MobName.Text, "") == 0)
            {
                return;
            }

            _DB.AddMonsterDB(new MonsterDB(now_mob));
            BindingMobList.AddList(new MonsterDB(now_mob));

            InitializeContents();
            MobName.Focus();
            _isNew = true;
        }
Example #3
0
        public MonsterManager(ref DBlist DB)
        {
            _DB = DB;
            InitializeComponent();

            if (_DB._mob_db == null)
            {
                now_mob.MobId = 0;
            }
            else
            {
                now_mob.MobId = _DB._mob_db.Count();
            }

            DataContext = now_mob;
            InitializeContents();

            BindingMobList         = new MonsterListBox(ref _DB);
            DB_ListBox.ItemsSource = BindingMobList;

            MobName.Focus();
        }
Example #4
0
 private void New_DB_Click(object sender, RoutedEventArgs e)
 {
     InitializeContents();
     MobName.Focus();
 }