示例#1
0
        // Builds a results window and opens it, using a query and list of strings
        private void ShowListResults(string query, List <string> results)
        {
            ListResults resultsWin;

            resultsWin = new ListResults(query, results);

            // Show the new user view
            parentWin.DataContext       = null;
            parentWin.MainWindowContent = resultsWin;
            parentWin.DataContext       = parentWin;
        }
示例#2
0
        // Call converter to convert VeteranDBInfo to strings
        // Builds a results window and opens it, using a query and list of veterans
        private void ShowVetResults(string query, List <VeteranDBInfo> vets)
        {
            ListResults   resultsWin;
            List <string> results;

            results = ConvertVetsToStrings(vets);

            resultsWin = new ListResults(query, results);

            // Show the new user view
            parentWin.DataContext       = null;
            parentWin.MainWindowContent = resultsWin;
            parentWin.DataContext       = parentWin;
        }