Beispiel #1
0
        //per locatie
        private void button6_Click(object sender, EventArgs e)
        {
            this.Hide();
            var nextForm = new ZoekScherm(this, 2, "SELECT * FROM Boek WHERE vakId IN (SELECT vakId FROM Vak WHERE boekenkastId IN (SELECT boekenkastId FROM Boekenkast WHERE locatieId = @locatieId ));", "Locatie", "SELECT * FROM Locatie;", "naam", "locatieId");

            nextForm.Show();
        }
Beispiel #2
0
        //per kast
        private void button5_Click(object sender, EventArgs e)
        {
            this.Hide();
            var nextForm = new ZoekScherm(this, 2, "SELECT * FROM Boek WHERE vakId IN (SELECT vakId FROM Vak WHERE boekenkastId = @boekenkastId );", "Boekenkast", "SELECT * FROM Boekenkast;", "plaats", "boekenkastId");

            nextForm.Show();
        }
Beispiel #3
0
        //totaal overzicht
        private void button1_Click(object sender, EventArgs e)
        {
            this.Hide();
            var nextForm = new ZoekScherm(this, 3, "SELECT * FROM Boek ;", "Alle boeken");

            nextForm.Show();
        }
Beispiel #4
0
        //per vak
        private void button4_Click(object sender, EventArgs e)
        {
            this.Hide();
            var nextForm = new ZoekScherm(this, 2, "SELECT * FROM Boek WHERE vakId = @vakId ;", "Vak", "SELECT * FROM Vak;", "naam", "vakId");

            nextForm.Show();
        }
Beispiel #5
0
        //per titel
        private void button2_Click(object sender, EventArgs e)
        {
            this.Hide();
            var nextForm = new ZoekScherm(this, 1, "SELECT * FROM Boek WHERE titel = @titel ;", "Titel");

            nextForm.Show();
        }
Beispiel #6
0
        //per genre
        private void button3_Click(object sender, EventArgs e)
        {
            this.Hide();
            var nextForm = new ZoekScherm(this, 1, "SELECT * FROM Boek WHERE genre = @genre ;", "Genre");

            nextForm.Show();
        }