Esempio n. 1
0
 private void listView1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listView1.SelectedItems.Count == 0)
     {
         return;
     }
     selected = listView1.SelectedItems[0].Tag as RectInfo;
 }
Esempio n. 2
0
        private void deleteToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (listView1.SelectedItems.Count == 0)
            {
                return;
            }
            var t = listView1.SelectedItems[0].Tag as RectInfo;

            currentItem.Infos.Remove(t);
            updateInfosList();
            selected = null;
        }