private void Form1_Load(object sender, EventArgs e) { IO.LoadProduct(); IO.LoadAdmin(); bs.DataSource = FurnitureModel.listFurniture; bs.ResetBindings(true); var adminprofile = FurnitureModel.adminList[0]; admin = adminprofile; labelName.Text = adminprofile.Name; labelSurname.Text = adminprofile.Surname; pictureBox1.Image = adminprofile.imageAdmin; try { basedate = new ToDataBase(); basedate.Connection(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }