Exemplo n.º 1
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     // add a new entry
     ListViewItem lvi = new ListViewItem("aaa");
     lvi.SubItems.Add("aaa");
     lvi.SubItems.Add("aaa");
     //lvi.ImageIndex = 0;
     ASDetails dlg = new ASDetails(lvi, 1);
     dlg.ShowDialog();
 }
Exemplo n.º 2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     // edit selected entry
     if (object.Equals(listView1.SelectedItems.Count, 1))
     {
         ListViewItem lvi = listView1.SelectedItems[listView1.SelectedItems.Count - 1];
         ASDetails dlg = new ASDetails(lvi,0);
         dlg.ShowDialog();
     }
 }