private void schemas_add_addSchema_button_Click(object sender, EventArgs e) { var schemaName = schemas_add_schemaName_textBox.Text; if (string.IsNullOrWhiteSpace(schemaName)) { HandleError("Must enter a schema name."); return; } try { _sql.AddSchemaToDatabase(schemaName, connDto); WriteToLog("Successfully added new schema:"); WriteToLog(schemaName); schemas_add_schemaName_textBox.Text = string.Empty; setSchemaList(); } catch (Exception ex) { HandleError("Error creating schema:", ex); return; } }