private void btnOkModyfikujUsluge_Click(object sender, EventArgs e) { if (txtCenaModyfikuj.Text == "") txtCenaModyfikuj.Text ="-1"; Usluga u = new Usluga(); u.modyfikujUsluge(txtBoxtoInt(txtIdUslugiModyfikuj.Text), txtOpisUslugiModyfikuj.Text, txtBoxtoInt(txtCenaModyfikuj.Text), 1); txtCenaModyfikuj.Text = ""; txtOpisUslugiModyfikuj.Text = ""; txtIdUslugiModyfikuj.Text = ""; wyswietlListeUslug(); }
private void btnOkUsunUsluge_Click(object sender, EventArgs e) { Usluga u = new Usluga(); u.usunUsluge(txtBoxtoInt(txtIdUslugiUsun.Text)); wyswietlListeUslug(); }
private void btnOkDodajUsluge_Click(object sender, EventArgs e) { Usluga u = new Usluga(); int cena = txtBoxtoInt(txtCena.Text); u.dodajUsluge(txtOpisUslugi.Text, cena, 1); wyswietlListeUslug(); txtCena.Text = ""; txtOpisUslugi.Text = ""; }