コード例 #1
0
        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));
            }
        }
コード例 #2
0
        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();
            }
        }