private async void dropDatabaseButton_Click(object sender, EventArgs e) { _dataBaseSettings.Source = Properties.Settings.Default.SqlDataSource; _dataBaseSettings.Id = Properties.Settings.Default.SqlUserID; _dataBaseSettings.Password = Properties.Settings.Default.SqlPassword; try { await _databaseService.DropDatabase(); } catch (Exception exception) { MessageBox.Show(exception.Message, null, MessageBoxButtons.OK, MessageBoxIcon.Error); } Close(); }