示例#1
0
        private void Add_DB_Click(object sender, RoutedEventArgs e)
        {
            if (string.Compare(Item_name.Text, "") == 0)
            {
                return;
            }

            now_DB[now_item.Id] = new ItemDB(now_item);
            BindingItemList.AddList(new ItemDB(now_item));

            InitializeContents();
            Item_name.Focus();
            DB_ListBox.SelectedIndex = -1;
            _isNew = true;
        }
示例#2
0
        private void Add_DB_Click(object sender, RoutedEventArgs e)
        {
            if (string.Compare(Item_name.Text, "") == 0)
            {
                return;
            }

            if (cmb_item_type.SelectedIndex == (int)ITEM_TYPE_ENUM.SET_OPTION)
            {
                now_item.SetName = now_item.Name;
            }

            now_DB[now_item.Id] = new ItemDB(now_item);
            BindingItemList.AddList(new ItemDB(now_item));

            InitializeContents();
            Item_name.Focus();
            DB_ListBox.SelectedIndex = -1;
            _isNew = true;
        }
示例#3
0
 private void New_DB_Click(object sender, RoutedEventArgs e)
 {
     InitializeContents();
     Item_name.Focus();
     DB_ListBox.SelectedIndex = -1;
 }