コード例 #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;
         }
     }
 }
コード例 #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;
                }
            }
        }
コード例 #3
0
        public void get()
        {
            f.dataGridView1.RowCount = list.Count + 1;
            for (int i = 0; i < list.Count; i++)
            {
                cl obj1 = list[i];

                f.dataGridView1.Rows[i].Cells[0].Value = obj1.getpri();
                f.dataGridView1.Rows[i].Cells[1].Value = obj1.getima();
                f.dataGridView1.Rows[i].Cells[2].Value = obj1.getpob();
                f.dataGridView1.Rows[i].Cells[3].Value = obj1.getpos();
            }
        }
コード例 #4
0
        public void get45()
        {
            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.getpos().ToString());
                }
                if (i > 0)
                {
                    for (int k = 0; k < i; k++)
                    {
                        cl obj2 = list[k];
                        if (obj2.getpos().ToString() != obj1.getpos().ToString())
                        {
                            r = 1;
                        }
                        else
                        {
                            r = 0; k = i;
                        }
                    }
                    if (r == 1)
                    {
                        f.comboBox1.Items.Add(obj1.getpos().ToString());
                    }
                }
            }
            f.comboBox1.EndUpdate();
        }