private void ZToolStripMenuItemClick(object sender, EventArgs e) { //MessageBox.Show("Edit"); if (lstSoftware.SelectedItems.Count <= 0) return; int idx = int.Parse(lstSoftware.SelectedItems[0].SubItems[2].Text); var itm = new FrmItem { Item = Data[idx] }; if (itm.Show4Item(this) != DialogResult.OK) return; Data[idx] = itm.Item; Serialization(typeof(SoftList), @"/" + Lists.Last, Data); DisplayList(Data); }
private void YToolStripMenuItemClick(object sender, EventArgs e) { //MessageBox.Show("Insert"); var itm = new FrmItem(); if (itm.Show4Item(this) != DialogResult.OK) return; Data.Add(itm.Item); Serialization(typeof(SoftList), @"/" + Lists.Last, Data); DisplayList(Data); }