private void Create_Click(object sender, RoutedEventArgs e) { var dialog = new CreateDatabaseDialogBox(_dataBaseAccessService); dialog.ShowDialog(); if (dialog.DialogResult != null && dialog.DialogResult.Value) { MainWindow.Refresh(); NavigationService.Navigate(new TablesListPage(_tableAccessService, dialog.DatabaseName)); } }
private void CreateDatabase_OnClick(object sender, RoutedEventArgs e) { var dialog = new CreateDatabaseDialogBox(_databaseAccessService); dialog.ShowDialog(); if (dialog.DialogResult != null && dialog.DialogResult.Value) { Frame.Navigate(new TablesListPage(_tableAccessService, dialog.DatabaseName)); RefreshTree(); } }