Skip to content

Commit

Permalink
Fixed small issue that was causing the program to only search for one…
Browse files Browse the repository at this point in the history
… value. Also added a label to display current search parameter.
  • Loading branch information
iWig committed Jan 30, 2017
1 parent e72a9ac commit 6394dfd
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 5 deletions.
Binary file modified .vs/FCCULSDataGrabber/v14/.suo
Binary file not shown.
12 changes: 7 additions & 5 deletions FCCULSDataGrabber/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,27 +161,29 @@ private void GenerateCSVFile()
CustomComboboxItem SelectCallSignMatchItem = (CustomComboboxItem)CallSignOptions.SelectedItem;
if (!DataFound && SelectCallSignMatchItem.Value != -1 && !DataStringLists[SelectCallSignMatchItem.Value][x].Equals(""))
{

CurrentlySearchingFor.Text = "Searching: " + DataStringLists[SelectCallSignMatchItem.Value][x].ToString();
//string url = "http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=" + DataStringLists[SelectCallSignMatchItem.Value][x] + "&format=json&pageSize=1000";
string url = "http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=N8AM&format=json";
CurrentlySearchingFor.Refresh();
string url = "http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=" + DataStringLists[SelectCallSignMatchItem.Value][x] + "&format=json&pageSize=1000";
//string url = "http://data.fcc.gov/api/license-view/basicSearch/getLicenses?searchValue=N8AM&format=json";
Console.Write("Testing");
string text = GetDataReponseFromFCCAPI(url);
dynamic stuff = JsonConvert.DeserializeObject(text);
//MessageBox.Show(DataStringLists[2][x]);
Console.WriteLine(DataStringLists[2][x]);



//Check To See If We Recieved An Error Meaning No Matches Found
if (!stuff.status.Value.Equals("OK"))
{
//TODO: Handle Error Here
Console.Write("Error");

} else
{
//We Found Data. We Could Have Mulitple Results Returned Here
DataFound = true;
int NumOfResultReturned = stuff.Licenses.totalRows;
Console.Write(NumOfResultReturned);

if (NumOfResultReturned > 1)
{
//We Have Multiple Results
Expand Down
Binary file modified FCCULSDataGrabber/bin/Debug/FCCULSDataGrabber.exe
Binary file not shown.
Binary file modified FCCULSDataGrabber/bin/Debug/FCCULSDataGrabber.pdb
Binary file not shown.
Binary file modified FCCULSDataGrabber/bin/Release/FCCULSDataGrabber.exe
Binary file not shown.
Binary file modified FCCULSDataGrabber/bin/Release/FCCULSDataGrabber.pdb
Binary file not shown.
Binary file modified FCCULSDataGrabber/obj/Debug/FCCULSDataGrabber.exe
Binary file not shown.
Binary file modified FCCULSDataGrabber/obj/Debug/FCCULSDataGrabber.pdb
Binary file not shown.
Binary file modified FCCULSDataGrabber/obj/Release/FCCULSDataGrabber.exe
Binary file not shown.
Binary file modified FCCULSDataGrabber/obj/Release/FCCULSDataGrabber.pdb
Binary file not shown.

0 comments on commit 6394dfd

Please sign in to comment.