private void ucTeAccepterenOffertes_Load(object sender, EventArgs e) { foreach (opdracht offerte in OfferteManagement.getOffertes()) { if (offerte.offerte_openstaand == true) { ucOfferteMini uco = new ucOfferteMini(); uco.opdracht = offerte; uco.OnRemoveButtonclick += new EventHandler(uco_OnRemoveButtonclick); uco.OnSaveButtonclick += new EventHandler(uco_OnSaveButtonclick); flpOffertes.Controls.Add(uco); } //if (opdracht.contract == false) //{ // uco.achtergrond = Color.CornflowerBlue; //} //else if (opdracht.contract == true) //{ // uco.achtergrond = Color.ForestGreen; //} } }
private void loadAllOffertes() { dataGridView1.DataSource = OfferteManagement.getOffertes(); }