private void RemoveConnection_Click(object sender, RoutedEventArgs e) { try { DbOperations.DeleteConnection(); Updatelists(); UpdatedMessage(); } catch (PostgresException ex) { MessageBox.Show(ex.Message); } }