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