private void btnDCDodajCzesc_Click(object sender, EventArgs e) { Czesc c = new Czesc(); c.dodajCzesc(txtDCNazwa.Text,txtBoxtoInt(txtDCcena.Text),txtBoxtoInt(txtDCIloscSztuk.Text)); idCzesci=c.idCzesci; wyswietlListeCzesci(); }