Esempio n. 1
0
        private void DetailMenuItem_Click(object sender, System.EventArgs e)
        {
            ListViewItem lvi      = instanceListView.SelectedItems[0];
            string       CompName = lvi.SubItems[1].Text;
            ArrayList    a        = (ArrayList)DataTable[CompName];
            ArrayList    DL       = new ArrayList();

            foreach (InstanceStruct iss in a)
            {
                if (iss.WR.IsAlive)
                {
                    DL.Add(iss.StackList);
                }
            }
            if (DL.Count > 0)
            {
                InstanceTracker2 it2 = new InstanceTracker2(DL);
                it2.Text = CompName;
                it2.ShowDialog();
                it2.Dispose();
            }
            else
            {
                MessageBox.Show("No details for this item");
            }
        }
 private void DetailMenuItem_Click(object sender, System.EventArgs e)
 {
     ListViewItem lvi = instanceListView.SelectedItems[0];
     string CompName = lvi.SubItems[1].Text;
     ArrayList a = (ArrayList)DataTable[CompName];
     ArrayList DL = new ArrayList();
     foreach(InstanceStruct iss in a)
     {
         if (iss.WR.IsAlive)
             DL.Add(iss.StackList);
     }
     if (DL.Count>0)
     {
         InstanceTracker2 it2 = new InstanceTracker2(DL);
         it2.Text = CompName;
         it2.ShowDialog();
         it2.Dispose();
     }
     else
     {
         MessageBox.Show("No details for this item");
     }
 }