//------------------------------------------------------------------------------- // private void tsmiEditList_Click(object sender, EventArgs e) { ListData listdata = (ListData)lstvList.SelectedItems[0].Tag; using (FrmEditList frm = new FrmEditList(false, EnumerateExistingList(), listdata.Name)) { frm.ListData = listdata; if (frm.ShowDialog(this) == DialogResult.OK) { // TODO:SelectedItems[0]の変更 } } }
//------------------------------------------------------------------------------- // private void btnAddNewList_Click(object sender, EventArgs e) { using (FrmEditList frm = new FrmEditList(true, EnumerateExistingList())) { if (frm.ShowDialog(this) == DialogResult.OK) { AddList(frm.ListData.AsEnumerable()); } } }