Пример #1
0
 private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     listBox2.DataSource = null;
     listBox2.Items.Clear();
     try
     {
         stringList.Clear();
         foreach (string s in DatabaseResolver.GetInformation(listBox1.SelectedItem.ToString()))
         {
             stringList.Add(s);
         }
         string tempString = DatabaseResolver.GetItemID(listBox1.SelectedItem.ToString());
         svid = Convert.ToInt32(tempString);
     }
     catch (NullReferenceException)
     {
     }
     listBox2.DataSource = stringList;
     stringList.Clear();
 }
Пример #2
0
 private void listBox2_SelectedIndexChanged(object sender, EventArgs e)
 {
     listBox3.DataSource = null;
     listBox3.Items.Clear();
     try
     {
         stringList.Clear();
         foreach (string s in DatabaseResolver.GetInformation(listBox2.SelectedItem.ToString()))
         {
             stringList.Add(s);
         }
     }
     catch (NullReferenceException)
     {
     }
     listBox3.DataSource = stringList;
     compareList.Clear();
     foreach (string s in stringList)
     {
         compareList.Add(s);
     }
     stringList.Clear();
 }