示例#1
0
        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();
        }
示例#2
0
        private void btnOkUsunUsluge_Click(object sender, EventArgs e)
        {
            Usluga u = new Usluga();

            u.usunUsluge(txtBoxtoInt(txtIdUslugiUsun.Text));
            wyswietlListeUslug();
        }
示例#3
0
        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 = "";
        }