private void CopyItemButton_Click(object sender, EventArgs e) { activeItemData = SREditor.CopyItem(activeItemData); UpdateItemInfo(); ItemListBox.SelectedIndex = itemDTOs.IndexOf(activeItemData); //UpdateUI(); }
private void ItemListBox_SelectedIndexChanged(object sender, EventArgs e) { if (ItemListBox.SelectedItem != null) { activeItemData = (dto.ItemData)ItemListBox.SelectedItem.GetMemberValue("Value"); ExtraNameTextBox.Clear(); ExtraDescriptionTextBox.Clear(); UpdateUI(); } }