private void Btn_ConflictListQuery_Click(object sender, RoutedEventArgs e) { List <string> results; results = QueryDBInfo.CountedConflictList(); ShowListResults("List of conflicts with veteran count per conflict:", results); }
private void Btn_TotalCountQuery_Click(object sender, RoutedEventArgs e) { int count; count = QueryDBInfo.CountOfDatabase(); ShowVetResults("Number of veterans in the database: " + count, new List <VeteranDBInfo>()); }
private void Btn_BranchListQuery_Click(object sender, RoutedEventArgs e) { List <string> results; results = QueryDBInfo.CountedBranchList(); ShowListResults("List of branches with veteran count per branch:", results); }
private void Btn_ConflictCemQuery_Click(object sender, RoutedEventArgs e) { if (ConflictCemeteryQueryType == QueryTypeList[0]) { int count; count = QueryDBInfo.CountByConflictCem(SelectedConflictConflictCem, SelectedCemeteryConflictCem); ShowVetResults("Number of " + SelectedConflictConflictCem + " veterans in " + SelectedCemeteryConflictCem + ": " + count, new List <VeteranDBInfo>()); } else { List <VeteranDBInfo> results; results = QueryDBInfo.ListByConflictCem(SelectedConflictConflictCem, SelectedCemeteryConflictCem); ShowVetResults("List of " + SelectedConflictConflictCem + " veterans in " + SelectedCemeteryConflictCem, results); } }
private void Btn_BranchConflictQuery_Click(object sender, RoutedEventArgs e) { if (BranchConflictQueryType == QueryTypeList[0]) { int count; count = QueryDBInfo.CountByBranchConflict(SelectedBranchBranchConflict, SelectedConflictBranchConflict); ShowVetResults("Number of " + SelectedBranchBranchConflict + " veterans in " + SelectedConflictBranchConflict + ": " + count, new List <VeteranDBInfo>()); } else { List <VeteranDBInfo> results; results = QueryDBInfo.ListByBranchConflict(SelectedBranchBranchConflict, SelectedConflictBranchConflict); ShowVetResults("List of " + SelectedBranchBranchConflict + " veterans in " + SelectedConflictBranchConflict, results); } }