Ejemplo n.º 1
0
 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();
 }
Ejemplo n.º 2
0
        private void btnDCdoU_Click(object sender, EventArgs e)
        {
            Czesc c=new Czesc();

            c.dodajCzescDoUslugi(txtBoxtoInt(txtDCdoU.Text),idCzesci);
            cenaUslugi=c.wyznaczCeneUslugi(txtBoxtoInt(txtDCdoU.Text));

            c.wstawCeneUslugi(cenaUslugi,txtBoxtoInt(txtDCdoU.Text));
            wyswietlListePomocniczaUslugiDlaCzesci();
            txtDCdoU.Text = "";
        }
Ejemplo n.º 3
0
        private void btnASCOK_Click(object sender, EventArgs e)
        {
            Czesc c = new Czesc();
            c.uzupelnijStan(txtBoxtoInt(txtASIdCzesci.Text), txtBoxtoInt(txtASCLiczbasztuk.Text));

            txtASCLiczbasztuk.Text = "";
            txtASIdCzesci.Text = "";
            wyswietlListeCzesci();
        }