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

                PageNavigationService.ShowPage(connection.CollectionManagementPage);
            }
        }
示例#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();
        }