Пример #1
0
 public void get242()
 {
     f.dataGridView2.RowCount = list.Count + e;
     for (int i = 0; i < list.Count; i++)
     {
         cl obj1 = list[i];
         if (obj1.getpas().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;
         }
     }
 }
Пример #2
0
        public void get24()
        {
            f.dataGridView2.RowCount = list.Count + e;
            for (int i = 0; i < list.Count; i++)
            {
                cl obj1 = list[i];

                if (f.comboBox1.SelectedItem.ToString() == obj1.getpas())
                {
                    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;
                }
            }
        }
Пример #3
0
        public void get44()////
        {
            f.comboBox1.Items.Clear();
            f.comboBox1.BeginUpdate();

            for (int i = 0; i < list.Count; i++)
            {
                int r    = 0;
                cl  obj1 = list[i];

                if (i == 0)
                {
                    f.comboBox1.Items.Add(obj1.getpas().ToString());
                }
                if (i > 0)
                {
                    for (int k = 0; k < i; k++)
                    {
                        cl obj2 = list[k];
                        if (obj2.getpas().ToString() != obj1.getpas().ToString())
                        {
                            r = 1;
                        }
                        else
                        {
                            r = 0; k = i;
                        }
                    }
                    if (r == 1)
                    {
                        f.comboBox1.Items.Add(obj1.getpas().ToString());
                    }
                }
            }
            f.comboBox1.EndUpdate();
        }