//After database is selected, we navigate to the next page with the database ID.

        public void GoDatabaseDetails(Databases _selectedDB)
        {

            App.AppFrame.Navigate(typeof(DatabaseDetailsView),_selectedDB);
        }
          private async void navigationHelper_LoadState(object sender, LoadStateEventArgs e)
        {
            Window.Current.SizeChanged += Window_SizeChanged;
            DetermineVisualState();

            selectedDatabase = (Databases)e.NavigationParameter;
            DBName.Text = selectedDatabase.DatabaseName;
            state.Text = selectedDatabase.DatabaseState;
            slo.Text = selectedDatabase.DatabaseSlo;
            access.Text = selectedDatabase.AccessDesc;
            readstatus.Text = selectedDatabase.IsReadOnly;
            encryptonly.Text = selectedDatabase.IsEncrypt;
            await DatabaseDetails.GetDatabaseSize(selectedDatabase.DatabaseName);
            await DatabaseDetails.GetTablesCommand(selectedDatabase.DatabaseName);
            await DatabaseDetails.GetConnectionCount(selectedDatabase.DatabaseName);

            DispactcherTimeSetupTab1();
            DispatchTimerTab1.Start();
            BasicDetails.IsEnabled = false;
            DispactcherTimeSetupTab2();
            DispactcherTimeSetupTab3();
            DispactcherTimeSetupTab4();

            setupbasicdetails();


           // 
        }