Skip to content

Commit

Permalink
3226 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
lavedon committed May 9, 2021
1 parent 4e8904d commit 3c83eca
Show file tree
Hide file tree
Showing 83 changed files with 294 additions and 2,085 deletions.
13 changes: 10 additions & 3 deletions API.cs
Original file line number Diff line number Diff line change
Expand Up @@ -408,15 +408,22 @@ public static void APICalls(CurrentQuery query)
query.Senses.Add(currentSense);
Console.WriteLine();

Console.WriteLine("---- S to Save - X to exit - Enter for more----");
Console.WriteLine("---- S to Save - X to exit - Q - to get Quotes for this sense");
Console.WriteLine("Or just press Enter for more senses----");
string input = Console.ReadLine().Trim().ToLower();
if (input == "s")
{
SavedQueries.AddMember(currentSense);
SavedQueries.AddMember(currentSense);
}
else if (input == "x")
break;
{
break;
}
else if (input == "q")
{
break;
}
}
catch (Exception ex)
{
Trace.WriteLine(ex);
Expand Down
14 changes: 7 additions & 7 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ static void Main(string[] args)
// Try to create the directory
DirectoryInfo di = Directory.CreateDirectory(directoryPath);
}
string fullPath = string.Concat(Environment.CurrentDirectory, $"\\logs\\Log_OxfordApplication_{DateTime.Now.ToString("yyyyMMdd-HHmm")}.txt");
Trace.WriteLine("Path is {0}", fullPath);
TextWriterTraceListener tr2 = new TextWriterTraceListener(System.IO.File.CreateText(fullPath));
string fullPath = string.Concat(Environment.CurrentDirectory, $"\\logs\\Log_OxfordApplication_{DateTime.Now.ToString("yyyyMMdd-HHmm")}.txt");
Trace.WriteLine("Path is {0}", fullPath);
TextWriterTraceListener tr2 = new TextWriterTraceListener(System.IO.File.CreateText(fullPath));

Trace.Listeners.Add(tr2);
Trace.Listeners.Add(tr2);
}

catch (Exception e)
Expand All @@ -42,9 +42,9 @@ static void Main(string[] args)
}
finally {}

Trace.WriteLine("Leaving Main method.");
ConsoleUI.Start();
Trace.Flush();
Trace.WriteLine("Leaving Main method.");
ConsoleUI.Start();
Trace.Flush();
}

}
Expand Down
Binary file modified bin/Debug/net5.0/OxfordV2.dll
Binary file not shown.
Binary file modified bin/Debug/net5.0/OxfordV2.pdb
Binary file not shown.
Binary file modified bin/Release/net5.0/win10-x64/OxfordV2.dll
Binary file not shown.
Binary file modified bin/Release/net5.0/win10-x64/OxfordV2.pdb
Binary file not shown.
Binary file modified bin/Release/net5.0/win10-x64/publish/OxfordV2.dll
Binary file not shown.
Binary file modified bin/Release/net5.0/win10-x64/publish/OxfordV2.pdb
Binary file not shown.
Binary file modified bin/Release/net5.0/win10-x64/ref/OxfordV2.dll
Binary file not shown.
37 changes: 36 additions & 1 deletion logs/Log_OxfordApplication_20210505-2209.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,39 @@ The contents of the exported XML file are:
<Title> - 1856</Title>
<Type>Topic</Type>
<Content>
<Question>If this is an index of what is going on in Ohio
<Question>If this is an index of what is going on in Ohio, look out for a landslide here on the 6th of November, for we are all going one way. --, 1856</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>2</ID>
<Title>H. B. Stowe - 1868</Title>
<Type>Topic</Type>
<Content>
<Question>His first great speech..was a perfect land-slide of history of argument; an avalanche under which the opposing party were logically buried. --H. B. Stowe, 1868</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>1</ID>
<Title>An overwhelming majority of votes for one party or candidate in an election; a victory achieved with such a majority.</Title>
<Type>Topic</Type>
<Content>
<Question>An overwhelming majority of votes for one party or candidate in an election; a victory achieved with such a majority. --This sense was first used in the year 1856, This usage is NOT obsolete., This sense is NOT the main sense for this word., landslide, n., sense 2</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
<SuperMemoElement>
<ID>2</ID>
<Title>An overwhelming majority of votes for one party or candidate in an election; a victory achieved with such a majority.</Title>
<Type>Topic</Type>
<Content>
<Question>An overwhelming majority of votes for one party or candidate in an election; a victory achieved with such a majority. --This sense was first used in the year 1856, This usage is NOT obsolete., This sense is NOT the main sense for this word., landslide, n., sense 2</Question>
<SuperMemoReference>&amp;lt;H5 dir=ltr align=left&amp;gt;&amp;lt;Font size=&amp;quot;1&amp;quot; style=&amp;quot;color: transparent&amp;quot;&amp;gt; SuperMemo Reference:&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;FONT class=reference&amp;gt;Title:&amp;quot;My Test Quote&amp;quot; &amp;lt;br&amp;gt;Source: Oxford English Dictionary</SuperMemoReference>
</Content>
</SuperMemoElement>
</SuperMemoCollection>
In MainMenu()
The user's input was read as:
x
Exit selected.
Loading

0 comments on commit 3c83eca

Please sign in to comment.