// Delete the database if the user confirms public void DeleteDatabase() { NotBusy = false; if (MessageBox.Show( string.Format("Are you sure you want to delete database '{0}' on server: {1}?", AsBuilder.InitialCatalog, AsBuilder.DataSource), "Delete SQL Server Database?", MessageBoxButton.YesNo, MessageBoxImage.Question) == MessageBoxResult.Yes) { Connecting(this, EventArgs.Empty); DbCreator.Delete(AsBuilder.ConnectionString); } NotBusy = true; }