private void btn_pidbir_Click(object sender, EventArgs e) { loadListToComboBox(dances, comboBox_dance_pidbir); loadListToComboBox(colors, comboBox_color_pidbir); loadListToComboBox(matherials, comboBox_matherial_pidbir); loadListToComboBox(manufacturers, comboBox_manufacturer_pidbir); loadListToComboBox(shoesService.getDances(), comboBox_dance_pidbir, true); loadListToComboBox(shoesService.getColors(), comboBox_color_pidbir, true); loadListToComboBox(shoesService.getMatherials(), comboBox_matherial_pidbir, true); loadListToComboBox(shoesService.getManufacturers(), comboBox_manufacturer_pidbir, true); groupBox_pidbir.Visible = true; groupBox_form.Visible = false; }
private void FormFields_Load(object sender, EventArgs e) { shoes = form1.currentShoes; pictureBoxes.Add(pictureBox1); pictureBoxes.Add(pictureBox2); pictureBoxes.Add(pictureBox3); pictureBoxes.Add(pictureBox4); pictureBoxes.Add(pictureBox5); pictureBoxes.Add(pictureBox6); pictureBoxes.Add(pictureBox7); pictureBoxes.Add(pictureBox8); ShoesService shoesService = form1.shoesService; form1.loadListToComboBox(shoesService.getDances(), comboBox_dance); form1.loadListToComboBox(shoesService.getManufacturers(), comboBox_manufacturer); form1.loadListToComboBox(shoesService.getColors(), comboBox_color); form1.loadListToComboBox(shoesService.getMatherials(), comboBox_matherial); FillForm(shoes); }