private void editItemToolStripMenuItem_Click(object sender, EventArgs e) { if (lstPrograms.SelectedItems.Count == 0) { return; } frmItemProperty frm = new frmItemProperty((IcoListData)lstPrograms.SelectedItems[0].Tag); frm.ShowDialog(this); }
private void newItemToolStripMenuItem_Click(object sender, EventArgs e) { frmItemProperty frm = new frmItemProperty(); frm.ShowDialog(this); }