Beispiel #1
0
        private void GeneralInfo_Click(object sender, EventArgs e)
        {
            ListViewItemMagic selectedItem = null;

            foreach (ListViewItemMagic item in TMagicList.Items)
            {
                if (item.Selected)
                {
                    selectedItem = item; break;
                }
            }
            if (selectedItem == null)
            {
                return;
            }
            MagicRecord     magicRecord = magicTable.GetMagicRecords().First(i => selectedItem.CompareKey(i.ID, i.ForAltAttackMode));
            MagicRecordForm form        = new MagicRecordForm(magicRecord, nameTable);

            form.ShowDialog();
            selectedItem.UpdateListViewItem(magicRecord);
        }