示例#1
0
 private void RefreshListView()
 {
     ListBoxItems.BeginUpdate();
     ListBoxItems.Items.Clear();
     foreach (var item in Items)
     {
         ListBoxItems.Items.Add($"[{item.ItemId}] {item.Name}");
     }
     ListBoxItems.EndUpdate();
     RefreshSelectedIndex();
     RefreshButtons();
     RenderEditItem();
 }