Exemple #1
0
 public void get252()
 {
     f.dataGridView2.RowCount = list.Count + e;
     for (int i = 0; i < list.Count; i++)
     {
         cl obj1 = list[i];
         if (obj1.getpos().Contains(f.textBox9.Text))
         {
             f.dataGridView2.Rows[e].Cells[0].Value = obj1.getpri();
             f.dataGridView2.Rows[e].Cells[1].Value = obj1.getima();
             f.dataGridView2.Rows[e].Cells[2].Value = obj1.getpob();
             f.dataGridView2.Rows[e].Cells[3].Value = obj1.getpas();
             f.dataGridView2.Rows[e].Cells[4].Value = obj1.getpos();
             f.textBox12.Text = obj1.getrez();
             f.textBox5.Text  = obj1.getskarg();
             e = e + 1;
         }
     }
 }
Exemple #2
0
        public void get25()
        {
            f.dataGridView2.RowCount = list.Count + e;
            for (int i = 0; i < list.Count; i++)
            {
                cl obj1 = list[i];

                if (f.comboBox1.SelectedItem.ToString() == obj1.getpos())
                {
                    f.dataGridView2.Rows[e].Cells[0].Value = obj1.getpri();
                    f.dataGridView2.Rows[e].Cells[1].Value = obj1.getima();
                    f.dataGridView2.Rows[e].Cells[2].Value = obj1.getpob();
                    f.dataGridView2.Rows[e].Cells[3].Value = obj1.getpas();
                    f.dataGridView2.Rows[e].Cells[4].Value = obj1.getpos();
                    f.textBox12.Text = obj1.getrez();
                    f.textBox5.Text  = obj1.getskarg();
                    e = e + 1;
                }
            }
        }