Ejemplo n.º 1
0
 private void btnShowCommandsPage_Click(object sender, RoutedEventArgs e)
 {
     if (DbConnections.CurrentConnection != null)
     {
         PageNavigationService.ShowPage(DbConnections.CurrentConnection.CommandManagementPage);
     }
 }
Ejemplo n.º 2
0
        private void btnShowCollections_Click(object sender, RoutedEventArgs e)
        {
            if (DbConnections.CurrentConnection != null)
            {
                var connection = DbConnections.CurrentConnection;

                PageNavigationService.ShowPage(connection.CollectionManagementPage);
            }
        }
Ejemplo n.º 3
0
        public void LoadConnection()
        {
            MainService.UnselectAllConnections();

            if (DbConnection != null)
            {
                DbConnections.CurrentConnection = DbConnection;
            }

            tbkConnectionStatus.Text = "Conectado";
            tbkFilename.Text         = Path.GetFileName(DbConnection.ConnectionData.Filename);
            Background       = Brushes.LightGreen;
            ConnectionOpened = true;

            PageNavigationService.ShowPage(DbConnection.CollectionManagementPage);

            MainService.UpdateCollections();
        }