//Butonul de Search in sine functioneaza pe aceeasi logica ca butoanele celelalte, // dar trimit ca parametru ce s-a cautat in schimb private void SearchButton_Click(object sender, EventArgs e) { string search = SearchText.Text; ShowData ShowAngajati = new ShowData(search); ShowAngajati.Show(); }
private void Scumpe_Click(object sender, EventArgs e) { ShowData ShowAngajati = new ShowData("scumpe"); ShowAngajati.Show(); }
private void Angajati_Click(object sender, EventArgs e) { ShowData ShowAngajati = new ShowData("angajati"); ShowAngajati.Show(); }
private void Modele_Click(object sender, EventArgs e) { ShowData ShowModele = new ShowData("modele"); ShowModele.Show(); }
private void Masini_Click(object sender, EventArgs e) { ShowData ShowMasini = new ShowData("masini"); ShowMasini.Show(); }
//Pentru fiecare buton voi deschide o noua fereastra de tip ShowData, definita de mine // al carui unic scop este de a afisa rezultatul unui select, dar trimit de asemenea parametru pt a stii // ce buton a fost apasat private void Facturi_Click(object sender, EventArgs e) { ShowData ShowFacturi = new ShowData("facturi"); ShowFacturi.Show(); }