public Form1() { InitializeComponent(); shoesService = new ShoesService(); currentShoes = new Shoes(); pictureBoxes = new List <PictureBox>(); }
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); }