コード例 #1
0
        private void btnDown_Click(object sender, EventArgs e)
        {
            if (lbxItems.SelectedItem == null)
            {
                return;
            }
            string name = lbxItems.SelectedItem.ToString();

            _items.Demote(name);
            RefreshList();
            lbxItems.SelectedItem = name;
            OnOrderChanged();
        }