Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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>());
        }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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);
            }
        }
Exemplo n.º 5
0
        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);
            }
        }