Ejemplo n.º 1
0
        private void button5_Click(object sender, EventArgs e)
        {
            var id      = listView1.SelectedItems[0].Index;
            var inforow = new addedit(mainList[id]);
            var dialog  = inforow.ShowDialog(this);

            if (dialog == DialogResult.OK)
            {
                mainList[id]        = inforow.row;
                listView1.Items[id] = new ListViewItem(new string[] {
                    mainList[id].ID.ToString(),
                    mainList[id].FullName,
                    mainList[id].BithDate.ToString(),
                });
            }
        }