예제 #1
0
        private void InfoListView_SelectedIndexChanged(object sender, EventArgs e)         //выбор человека
        {
            CharacteristicsListView.Items.Clear();
            ListViewItem oneItem;

            if (InfoListView.SelectedItems.Count != 0)
            {
                _selectedIndex_ = Convert.ToInt32(InfoListView.FocusedItem.SubItems[0].Text);
                oneItem         = new ListViewItem(tribe.GetHumanCharacteristicListViewData(_selectedIndex_));
            }
            else
            {
                _selectedIndex_ = -1;
                string[] str = { "*", "*", "*", "*", "*" };
                oneItem = new ListViewItem(str);
            }
            CharacteristicsListView.Items.Add(oneItem);
        }