private void tables_delete_button_Click(object sender, EventArgs e) { var tableName = dash_tables_listBox.SelectedItem?.ToString(); if (string.IsNullOrWhiteSpace(tableName)) { HandleError("You must make a selection first."); return; } try { _sql.DropTableIfExists($"{dash_statusStrip_schema_value.Text}.{tableName}", connDto); WriteToLog($"Successfully dropped table: {tableName}"); resetTableList(); } catch (Exception ex) { HandleError($"Error while dropping table: {tableName}", ex); } }