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