private void listView1_ItemActivate(object sender, EventArgs e)
 {
     for (int i = 0; i < listViewStudent.Items.Count; i++)
         if (listViewStudent.Items[i].Selected == true)
         {
             foreach (Student s in studenti)
                 if (s.BrojIndexa.ToString () == listViewStudent.Items[i].SubItems [11].Text)
                 {
                     PromjenaStudent ps = new PromjenaStudent(s);
                     listViewStudent.Items.Clear();
                     listViewUposlenik.Items.Clear();
                     ps.ShowDialog();
                     return;
                 }
         }
        atribut.SelectedIndex = 0;
 }
Ejemplo n.º 2
0
 private void listViewStudent_ItemActivate(object sender, EventArgs e)
 {
     for (int i = 0; i < listViewStudent.Items.Count; i++)
     {
         if (listViewStudent.Items[i].Selected == true)
         {
             foreach (Student s in studenti)
             {
                 if (s.BrojIndexa.ToString() == listViewStudent.Items[i].SubItems[11].Text)
                 {
                     PromjenaStudent ps = new PromjenaStudent(s);
                     ps.ShowDialog();
                     return;
                 }
             }
         }
     }
 }