private void btnShowCommandsPage_Click(object sender, RoutedEventArgs e) { if (DbConnections.CurrentConnection != null) { PageNavigationService.ShowPage(DbConnections.CurrentConnection.CommandManagementPage); } }
private void btnShowCollections_Click(object sender, RoutedEventArgs e) { if (DbConnections.CurrentConnection != null) { var connection = DbConnections.CurrentConnection; PageNavigationService.ShowPage(connection.CollectionManagementPage); } }
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(); }