private void button_Ostatus_Refused_Click(object sender, EventArgs e) { using (zlecenieEntities db = new zlecenieEntities()) { try { int ID = ofW.getSelectedOffer(); if (ID != 0) { oferta of = db.oferta.Find(ID); of.Status = 4; db.SaveChanges(); ofW = new Offer_Window(); OpenChildForm(ofW); } } catch { } } }
} // Show order list private void button_Offer_list_Click(object sender, EventArgs e) { ofW = new Offer_Window(); OpenChildForm(ofW); } // Show offer list