Exemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     this.Hide();
     ListLot.Items.Clear();
     this.Show();
     LL = ControllerRq.AskAllLot126();
     LP = ControllerRq.AskAllProByLot126();
     if (LL.Count() != 0)
     {
         for (int i = 0; i < LL.Count(); i++)
         {
             ListViewItem lot = new ListViewItem(LL[i].NUM_LOT.ToString());
             lot.SubItems.Add(LL[i].ADRESSE);
             lot.SubItems.Add(LL[i].COD_PART.ToString());
             lot.SubItems.Add(LP[i].NOM_PRO);
             ListLot.Items.Add(lot);
         }
     }
 }