public async void getinlog()
 {
     if (Inlog.CheckForInternetConnection() == true)
     {
         string request = BASE_URI + "/api/oauth2/auth" +
                          "?client_id={" + CLIENT_ID + "}" +
                          "&redirect_uri=" + CALLBACK_URL +
                          "&state=" + CLIENT_STATE +
                          "&response_type=code&force_login=0";
         browser.Navigate(new Uri(request));//inlogscherm komt op
     }
     else
     {
         await errorAlert("Geen internetverbinding gedetecteerd, probeer het opnieuw");
     }
 }
        public MainWindow()
        {
            retour = new retourneren(this);
            if (loadScreen.goToLogin == true)
            {
                inlog = new Inlog(this);
                inlog.Show();
                this.Hide();
            }

            InitializeComponent();
            focus       = tbZoek;
            lastClicked = alles;
            dt.Columns.Add("ID", typeof(string));
            dt.Columns.Add("Description", typeof(string));
            dt.Columns.Add("Prijs", typeof(string));
            dt.Columns.Add("Aantal", typeof(string));
            // alles.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
        }