public void get222() { f.dataGridView2.RowCount = list.Count + e; for (int i = 0; i < list.Count; i++) { cl obj1 = list[i]; if (obj1.getima().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[4].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; } } }
public void get22() { f.dataGridView2.RowCount = list.Count + e; for (int i = 0; i < list.Count; i++) { cl obj1 = list[i]; if (f.comboBox1.SelectedItem.ToString() == obj1.getima()) { 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[4].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; } } }
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(); } }
public void get3() { f.dataGridView3.RowCount = list.Count + 1; for (int i = 0; i < list.Count; i++) { cl obj1 = list[i]; f.dataGridView3.Rows[i].Cells[0].Value = obj1.getpri(); f.dataGridView3.Rows[i].Cells[1].Value = obj1.getima(); f.dataGridView3.Rows[i].Cells[2].Value = obj1.getpob(); f.dataGridView3.Rows[i].Cells[3].Value = obj1.getzar(); f.dataGridView3.Rows[i].Cells[4].Value = obj1.getzar() * 0.1; f.dataGridView3.Rows[i].Cells[5].Value = obj1.getzar() * 1.1; } }
public void get42() { 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.getima().ToString()); } if (i > 0) { for (int k = 0; k < i; k++) { cl obj2 = list[k]; if (obj2.getima().ToString() != obj1.getima().ToString()) { r = 1; } else { r = 0; k = i; } } if (r == 1) { f.comboBox1.Items.Add(obj1.getima().ToString()); } } } f.comboBox1.EndUpdate(); }