Esempio n. 1
0
 private void dodaj_Click(object sender, EventArgs e)
 {
     Pracownik prac = new Pracownik();
     prac.dodaj(new Pracownik(), "server=localhost;user=root;database=mydb;port=3306;password=Sybilla17;");
     wczytajBaze();
 }
Esempio n. 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     Pracownik prac = new Pracownik();
     prac.modyfikuj(new Pracownik(Convert.ToInt32(dataGridView1.Rows[zaznaczony].Cells[0].Value.ToString()),"","","","","","","","","",""),  "server=localhost;user=root;database=mydb;port=3306;password=Sybilla17;");
     wczytajBaze();
 }