Ejemplo n.º 1
0
 private void listView1_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (statistics != 2)
     {
         ControllerObj.Add_To_History(lblusername.Text, listView1.SelectedItems[0].SubItems[1].ToString());
         Item_Details details = new Item_Details(listView1.SelectedItems[0].SubItems[3].ToString(), listView1.SelectedItems[0].SubItems[2].ToString(), _privilege, lblusername.Text, listView1, listView1.SelectedIndices[0]);
         details.Show();
     }
     else
     {
         ControllerObj.Add_To_History(lblusername.Text, listView1.SelectedItems[0].SubItems[1].ToString());
         Item_Details details = new Item_Details(listView1.SelectedItems[0].SubItems[4].ToString(), listView1.SelectedItems[0].SubItems[2].ToString(), _privilege, lblusername.Text, listView1, listView1.SelectedIndices[0]);
         details.Show();
     }
 }