private void MnuINI_Click(object sender, RoutedEventArgs e)
        {
            this.WindowState = WindowState.Maximized;
            winPopUp frm = new winPopUp();

            frm.Owner = this;
            frm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            string authenticatie, server, poort, catalogus, gebruiker, paswoord;

            ini.GeefWaarden(out authenticatie, out server, out poort, out catalogus, out gebruiker, out paswoord);
            if (authenticatie.ToLower() == "windows" || authenticatie == "")
            {
                frm.rdbSQL.IsChecked     = false;
                frm.rdbWindows.IsChecked = true;
            }
            else
            {
                frm.rdbSQL.IsChecked     = true;
                frm.rdbWindows.IsChecked = false;
            }
            frm.txtServer.Text         = server;
            frm.txtPoortnr.Text        = poort;
            frm.txtCatalgus.Text       = catalogus;
            frm.txtGebruikersnaam.Text = gebruiker;
            frm.txtPaswoord.Password   = paswoord;
            frm.ShowDialog();
        }
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            if (!db.dbAlive())
            {
                this.WindowState = WindowState.Maximized;
                winPopUp frm = new winPopUp();
                frm.Owner = this;
                frm.WindowStartupLocation = WindowStartupLocation.CenterOwner;
                frm.ShowDialog();
            }

            string sql;

            sql = "select * from BOEKEN";
            DataTable dt = db.ExecuteSelect(sql);

            if (dt != null)
            {
                grdTest.DataContext = dt.DefaultView;
            }
        }